Skip to content

Commit c3511c7

Browse files
authored
Merge pull request #300 from cpp-lln-lab/release-0.2.0
[REL] Release 0.2.0
2 parents 1b890f3 + 075d002 commit c3511c7

File tree

391 files changed

+7642
-1921
lines changed

Some content is hidden

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

391 files changed

+7642
-1921
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Check Markdown
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches: '*'
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: true
20+
fetch-depth: 1
21+
22+
- uses: actions/setup-node@v2
23+
with:
24+
node-version: '10'
25+
26+
- name: Install dependencies and check markdown
27+
run: |
28+
npm install `cat npm-requirements.txt`
29+
npx remark *.md --frail
30+
npx remark ./docs/ --frail
31+
npx remark ./demos/ --frail
32+
npx remark ./tests/ --frail

.github/workflows/check_md_links.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
push:
77
branches:
88
- master
9-
- dev
109
pull_request:
1110
branches: '*'
1211

.github/workflows/miss_hit.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- dev
87
pull_request:
98
branches: '*'
109

@@ -28,12 +27,16 @@ jobs:
2827
- name: Install dependencies
2928
run: |
3029
python -m pip install --upgrade pip setuptools
31-
pip3 install miss_hit
30+
pip3 install -r requirements.txt
3231
33-
- name: Miss_hit code quality
32+
- name: MISS_HIT Code style
3433
run: |
35-
mh_metric . --ci
34+
mh_style --process-slx
3635
37-
- name: Miss_hit code style
36+
- name: MISS_HIT Metrics
3837
run: |
39-
mh_style .
38+
mh_metric --ci
39+
40+
- name: MISS_HIT Bug finder
41+
run: |
42+
mh_lint
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 "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
62+
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"
63+
64+
- name: Prepare data
65+
run: |
66+
output_folder='demos/MoAE/output/'
67+
mkdir $output_folder
68+
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
69+
unzip $output_folder'MoAEpilot.zip' -d $output_folder
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: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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 "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
66+
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"
67+
68+
- name: Prepare data
69+
run: |
70+
output_folder='demos/MoAE/output/'
71+
mkdir $output_folder
72+
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
73+
unzip $output_folder'MoAEpilot.zip' -d $output_folder
74+
cd tests
75+
sh createDummyDataSet.sh
76+
cd ..
77+
78+
- name: Run tests
79+
run: |
80+
octave $OCTFLAGS --eval "runTests"
81+
cat test_report.log | grep 0
82+
bash <(curl -s https://codecov.io/bash)
83+

.gitignore

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,31 @@
99
*.zip
1010
*.ps
1111

12-
options_task-*.json
12+
options_task-*date*.json
1313
onsets*_events.mat
1414

1515
# files in the demo folder related to running the demo analysis
16-
demos/MoAE/*.zip
16+
demos/*/*.zip
17+
demos/*/derivatives/*
1718
demos/MoAE/output/*
18-
demos/MoAE/derivatives/*
19+
demos/spm*/raw
20+
demos/spm*/source
1921

20-
# test folder
22+
# test folder and dummy data
2123
tests/sub-01/*
2224
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*
2331

2432
# ignore content of the build folder of the doc
2533
docs/build/*
2634

2735
# ignore virtual env
28-
cpp_bids_spm/*
36+
cpp_spm/*
2937

3038
# visual studio code stuff
3139
.vscode

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "lib/bids-matlab"]
22
path = lib/bids-matlab
3-
url = https://github.com/cpp-lln-lab/bids-matlab.git
3+
url = https://github.com/bids-standard/bids-matlab.git
44
[submodule "lib/spmup"]
55
path = lib/spmup
66
url = https://github.com/CPernet/spmup.git

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ formats:
2323
python:
2424
version: 3.7
2525
install:
26-
- requirements: docs/requirements.txt
26+
- requirements: requirements.txt

.travis.yml

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

0 commit comments

Comments
 (0)