Skip to content

Commit 234c07d

Browse files
committed
create action to test with validator
1 parent bbf21e7 commit 234c07d

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/bids_validator.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: MOxUnit
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: 'master'
9+
10+
env:
11+
OCTFLAGS: --no-gui --no-window-system --silent
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
18+
- uses: actions/checkout@v2
19+
with:
20+
submodules: true
21+
fetch-depth: 1
22+
23+
- name: Make jsonread for octave and update path
24+
run: |
25+
sudo apt-get -y -qq update
26+
sudo apt-get -y install octave
27+
sudo apt-get -y install liboctave-dev
28+
cd lib/JSONio
29+
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
30+
cd ..
31+
octave $OCTFLAGS --eval "addpath (pwd); savepath ();"
32+
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath ();"
33+
34+
- name: Install BIDS validator
35+
run: |
36+
sudo npm install -g [email protected]
37+
38+
- name: Create dummy dataset and validate it
39+
run: |
40+
cd tests/manualTests
41+
octave $OCTFLAGS --eval "test_makeRawDataset" && bids-validator `pwd`/output/raw/ --ignoreNiftiHeaders
42+
43+
44+
45+
46+

.github/workflows/moxunit.yml

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
sudo apt-get -y install liboctave-dev
2626
cd lib/JSONio
2727
mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS
28-
# cd ../..
2928
3029
- name: MOxUnit Action
3130
uses: joergbrech/moxunit-action@master

0 commit comments

Comments
 (0)