66 - master
77 - main
88 - dev
9- pull_request :
10- branches : ' *'
119
12- env :
13- OCTFLAGS : --no-gui --no-window-system --silent
10+ pull_request :
11+ branches : ['*']
1412
1513jobs :
1614 build :
17-
1815 runs-on : ubuntu-20.04
1916
2017 steps :
@@ -24,37 +21,36 @@ jobs:
2421 sudo apt-get -y -qq update
2522 sudo apt-get -y install octave liboctave-dev
2623
27- - name : Clone spm_2_bids
24+ - name : Clone spm_2_bids
2825 uses : actions/checkout@v2
2926 with :
3027 submodules : true
3128 fetch-depth : 2
3229
33- - name : Install SPM
34- run : |
35- git clone https://github.com/spm/spm12.git --depth 1
36- make -C spm12/src PLATFORM=octave distclean
37- make -C spm12/src PLATFORM=octave
38- make -C spm12/src PLATFORM=octave install
39- octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
40-
41- - name : Install Moxunit and MOcov
30+ - name : get bids-matlab and JSONio
4231 run : |
43- git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
44- make -C MOxUnit install
45- git clone https://github.com/MOcov/MOcov.git --depth 1
46- make -C MOcov install
47-
48- - name : get bids-matlab and set up paths
49- run : |
50- make install_dev
51- octave $OCTFLAGS --eval "init_env; savepath();"
52-
53- - name : Run tests
54- run : |
55- octave $OCTFLAGS --eval "run_tests"
56- cat test_report.log | grep 0
57- bash <(curl -s https://codecov.io/bash)
32+ make install_dev_octave
5833
59-
34+ - name : MOxUnit Action
35+ uses :
joergbrech/[email protected] 36+ with :
37+ tests : tests # files or directories containing the MOxUnit test cases
38+ src : src # directories to be added to path before running the tests.
39+ ext : tests/utils lib/bids-matlab lib/JSONio # External resources to add to the search put (excluded from coverage)
40+ # data: # Directory for test data
41+ with_coverage : true
42+ cover_xml_file : coverage.xml
43+
44+ - name : Upload coverage
45+ uses : actions/upload-artifact@v1
46+ with :
47+ name : coverage_file
48+ path : coverage.xml
6049
50+ - name : Code coverage
51+ uses : codecov/codecov-action@v1
52+ with :
53+ file : coverage.xml # optional
54+ flags : unittests # optional
55+ name : codecov-umbrella # optional
56+ fail_ci_if_error : true # optional (default = false)
0 commit comments