Skip to content

Commit 82c1a4c

Browse files
authored
Merge branch 'dev' into cer-skullstrip_output
2 parents e09430b + 5dbd585 commit 82c1a4c

File tree

234 files changed

+10879
-2803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

234 files changed

+10879
-2803
lines changed

.all-contributorsrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@
6363
"infra",
6464
"design",
6565
"review",
66-
"bug"
66+
"bug",
67+
"test"
6768
]
6869
},
6970
{
@@ -83,7 +84,9 @@
8384
"contributions": [
8485
"bug",
8586
"content",
86-
"doc"
87+
"doc",
88+
"code",
89+
"review"
8790
]
8891
}
8992
],
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: system tests
2+
3+
# Uses the cron schedule for github actions
4+
#
5+
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
6+
#
7+
# ┌───────────── minute (0 - 59)
8+
# │ ┌───────────── hour (0 - 23)
9+
# │ │ ┌───────────── day of the month (1 - 31)
10+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
11+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12+
# │ │ │ │ │
13+
# │ │ │ │ │
14+
# │ │ │ │ │
15+
# * * * * *
16+
17+
on:
18+
push:
19+
branches:
20+
- master
21+
- main
22+
pull_request:
23+
branches:
24+
- 'master'
25+
- 'main'
26+
schedule:
27+
- cron: "* * 1 * *"
28+
29+
env:
30+
OCTFLAGS: --no-gui --no-window-system --silent
31+
32+
jobs:
33+
build:
34+
35+
runs-on: ubuntu-20.04
36+
37+
steps:
38+
39+
- name: Install dependencies
40+
run: |
41+
sudo apt-get -y -qq update
42+
sudo apt-get -y install octave liboctave-dev
43+
sudo apt-get -y install nodejs npm
44+
45+
- name: Clone cpp_spm
46+
uses: actions/checkout@v2
47+
with:
48+
submodules: true
49+
fetch-depth: 2
50+
51+
- name: Install SPM
52+
run: |
53+
git clone https://github.com/spm/spm12.git --depth 1
54+
make -C spm12/src PLATFORM=octave distclean
55+
make -C spm12/src PLATFORM=octave
56+
make -C spm12/src PLATFORM=octave install
57+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
58+
59+
- name: Update octave path
60+
run: |
61+
octave $OCTFLAGS --eval "initCppSpm; savepath();"
62+
63+
- name: Prepare data
64+
run: |
65+
inputs_folder='demos/MoAE/inputs/'
66+
mkdir $inputs_folder
67+
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $inputs_folder'MoAEpilot.zip'
68+
unzip $inputs_folder'MoAEpilot.zip' -d $inputs_folder
69+
mv $inputs_folder/MoAEpilot $inputs_folder/raw
70+
71+
- name: Run system tests
72+
run: |
73+
cd demos/MoAE
74+
octave $OCTFLAGS --eval "MoAEpilot_run"
75+

.github/workflows/run_tests.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: tests and coverage
2+
3+
# Uses the cron schedule for github actions
4+
#
5+
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
6+
#
7+
# ┌───────────── minute (0 - 59)
8+
# │ ┌───────────── hour (0 - 23)
9+
# │ │ ┌───────────── day of the month (1 - 31)
10+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
11+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
12+
# │ │ │ │ │
13+
# │ │ │ │ │
14+
# │ │ │ │ │
15+
# * * * * *
16+
17+
on:
18+
push:
19+
branches:
20+
- dev
21+
pull_request:
22+
branches: '*'
23+
schedule:
24+
- cron: "* * 1 * *"
25+
26+
env:
27+
OCTFLAGS: --no-gui --no-window-system --silent
28+
29+
jobs:
30+
build:
31+
32+
runs-on: ubuntu-20.04
33+
34+
steps:
35+
36+
- name: Install dependencies
37+
run: |
38+
sudo apt-get -y -qq update
39+
sudo apt-get -y install octave liboctave-dev
40+
sudo apt-get -y install nodejs npm
41+
42+
- name: Clone cpp_spm
43+
uses: actions/checkout@v2
44+
with:
45+
submodules: true
46+
fetch-depth: 2
47+
48+
- name: Install SPM
49+
run: |
50+
git clone https://github.com/spm/spm12.git --depth 1
51+
make -C spm12/src PLATFORM=octave distclean
52+
make -C spm12/src PLATFORM=octave
53+
make -C spm12/src PLATFORM=octave install
54+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"
55+
56+
- name: Install Moxunit and MOcov
57+
run: |
58+
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
59+
make -C MOxUnit install
60+
git clone https://github.com/MOcov/MOcov.git --depth 1
61+
make -C MOcov install
62+
63+
- name: Update octave path
64+
run: |
65+
octave $OCTFLAGS --eval "initCppSpm; savepath();"
66+
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'tests', 'utils')); savepath();"
67+
68+
- name: Prepare data
69+
run: |
70+
inputs_folder='demos/MoAE/inputs/'
71+
mkdir $inputs_folder
72+
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $inputs_folder'MoAEpilot.zip'
73+
unzip $inputs_folder'MoAEpilot.zip' -d $inputs_folder
74+
mv $inputs_folder/MoAEpilot $inputs_folder/raw
75+
cd tests
76+
sh createDummyDataSet.sh
77+
cd ..
78+
79+
- name: Run tests
80+
run: |
81+
octave $OCTFLAGS --eval "runTests"
82+
cat test_report.log | grep 0
83+
bash <(curl -s https://codecov.io/bash)
84+

.gitignore

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,16 @@ options_task-*date*.json
1313
onsets*_events.mat
1414

1515
# files in the demo folder related to running the demo analysis
16-
demos/*/*.zip
17-
demos/*/derivatives/*
18-
demos/MoAE/output/*
19-
demos/spm*/raw
20-
demos/spm*/source
16+
demos/*/outputs/
17+
demos/*/inputs/
18+
demos/*/*.nii
19+
demos/*/cfg/*.json
2120

2221
# test folder and dummy data
23-
tests/sub-01/*
22+
tests/*.png
2423
tests/group/*
25-
tests/models/*.json
26-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.nii
27-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.tsv
28-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.txt
29-
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.json
30-
tests/dummyData/derivatives/cpp_spm/sub-*/stats/*/*/*.nii
24+
tests/*/*.json
25+
tests/dummyData/derivatives/cpp_spm*/sub-*/
3126

3227
# ignore content of the build folder of the doc
3328
docs/build/*

.gitmodules

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44
[submodule "lib/spmup"]
55
path = lib/spmup
66
url = https://github.com/CPernet/spmup.git
7+
[submodule "lib/CPP_ROI"]
8+
path = lib/CPP_ROI
9+
url = https://github.com/cpp-lln-lab/CPP_ROI.git
10+
[submodule "lib/slice_display"]
11+
path = lib/slice_display
12+
url = https://github.com/bramzandbelt/slice_display.git
13+
[submodule "lib/brain_colours"]
14+
path = lib/brain_colours
15+
url = https://github.com/CPernet/brain_colours.git

.travis.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.zenodo.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,16 @@
3131
"affiliation": "Université Catholique de Louvain",
3232
"name": "Gurtubay, Ane",
3333
"orcid": "0000-0003-3824-2219"
34-
},
34+
},
3535
{
3636
"affiliation": "Université Catholique de Louvain",
3737
"name": "Falagiarda, Federica",
3838
"orcid": "0000-0001-7844-1605"
39+
},
40+
{
41+
"affiliation": "Université de Montréal",
42+
"name": "MacLean, Michèle",
43+
"orcid": "0000-0002-0174-9326"
3944
}
4045
],
4146
"keywords": [
@@ -49,4 +54,4 @@
4954
],
5055
"license": "GPL-3",
5156
"upload_type": "software"
52-
}
57+
}

0 commit comments

Comments
 (0)