11name : tests and coverage
22
33# Uses the cron schedule for github actions
4- #
4+ #
55# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
6- #
6+ #
77# ┌───────────── minute (0 - 59)
88# │ ┌───────────── hour (0 - 23)
99# │ │ ┌───────────── day of the month (1 - 31)
1010# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
1111# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12- # │ │ │ │ │
12+ # │ │ │ │ │
1313# │ │ │ │ │
1414# │ │ │ │ │
1515# * * * * *
1616
1717on :
1818 push :
1919 branches :
20- - dev
20+ - master
2121 pull_request :
2222 branches : ' *'
23- schedule :
24- - cron : " * * 1 * *"
2523
2624env :
2725 OCTFLAGS : --no-gui --no-window-system --silent
2826
2927jobs :
3028 build :
3129
32- runs-on : ubuntu-20.04
30+ runs-on : ubuntu-latest
3331
3432 steps :
3533
3836 sudo apt-get -y -qq update
3937 sudo apt-get -y install octave liboctave-dev
4038 sudo apt-get -y install nodejs npm
39+ pip install datalad
4140
42- - name : Clone cpp_spm
41+ - name : Clone cpp_spm
4342 uses : actions/checkout@v2
4443 with :
4544 submodules : true
@@ -58,12 +57,12 @@ jobs:
5857 git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
5958 make -C MOxUnit install
6059 git clone https://github.com/MOcov/MOcov.git --depth 1
61- make -C MOcov install
62-
60+ make -C MOcov install
61+
6362 - name : Update octave path
6463 run : |
6564 octave $OCTFLAGS --eval "initCppSpm; savepath();"
66- octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
65+ octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
6766
6867 - name : Prepare data
6968 run : |
@@ -73,12 +72,11 @@ jobs:
7372 unzip $inputs_folder'MoAEpilot.zip' -d $inputs_folder
7473 mv $inputs_folder/MoAEpilot $inputs_folder/raw
7574 cd tests
76- sh createDummyDataSet.sh
75+ make data
7776 cd ..
7877
7978 - name : Run tests
8079 run : |
8180 octave $OCTFLAGS --eval "run_tests"
8281 cat test_report.log | grep 0
83- bash <(curl -s https://codecov.io/bash)
84-
82+ bash <(curl -s https://codecov.io/bash)
0 commit comments