Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
342 commits
Select commit Hold shift + click to select a range
5fa2deb
Merge pull request #165 from marcobarilari/marco_3Dto4Dconversion
marcobarilari Nov 9, 2020
9a243ef
Merge pull request #172 from Remi-Gau/remi-loadAndCheckOptions
Remi-Gau Nov 9, 2020
6fb0ba9
Merge pull request #171 from CerenB/cer-spatialprep_typofix
Remi-Gau Nov 9, 2020
7d0972f
add carpet plot to functionalQA
Remi-Gau Nov 8, 2020
e9bf5f1
update README
Remi-Gau Nov 9, 2020
e894aaa
mh fix
Remi-Gau Nov 9, 2020
caab30c
Merge pull request #168 from Remi-Gau/remi-QA_carpetplot
Remi-Gau Nov 9, 2020
bf85945
add main script for gzipping raw folder
marcobarilari Nov 11, 2020
244ad99
make file moving function more robust and fail more gracefully
Remi-Gau Nov 12, 2020
ac887bd
update workflow script to gzip
marcobarilari Nov 12, 2020
66b32b2
add spm batch for gzipping
marcobarilari Nov 12, 2020
b1c430d
update the example workflow
marcobarilari Nov 12, 2020
04c95ac
fix doc error in setBatch3Dto4D
marcobarilari Nov 12, 2020
19fa2d7
change errors to warnings
marcobarilari Nov 12, 2020
57a5c9b
skip QA if running octave
Remi-Gau Nov 12, 2020
1036a48
Update src/workflows/bidsGZipRawFolder.m
marcobarilari Nov 12, 2020
225e14b
Update src/batches/setBatchGZip.m
marcobarilari Nov 13, 2020
d180fac
Update src/batches/setBatchGZip.m
marcobarilari Nov 13, 2020
5d31a74
Update src/workflows/bidsGZipRawFolder.m
marcobarilari Nov 13, 2020
e3f7661
Update src/workflows/bidsGZipRawFolder.m
marcobarilari Nov 13, 2020
a80bd6b
update documentation
marcobarilari Nov 13, 2020
a8ae513
add test for checkOptionsSource
marcobarilari Nov 13, 2020
eefa8ae
add code to test fun checkOptionsSource
marcobarilari Nov 13, 2020
34aded3
Merge pull request #179 from marcobarilari/marco_zip-raw-folder
marcobarilari Nov 13, 2020
8efdd13
opt can be a json file also?
anege Nov 17, 2020
0b847a7
minor edit bidsSegmentSkullStrip
anege Nov 17, 2020
8e7b44a
Update batches from bidssegmentskullstrip
anege Nov 17, 2020
7549b1a
correct opt structure
anege Nov 17, 2020
ce45707
update bidsSmoothing.m
anege Nov 17, 2020
dc7dce8
Update help in bids functions
anege Nov 17, 2020
74a3b69
Add help section saveAndRunWorkflow.m
anege Nov 17, 2020
acc93e2
Change year
anege Nov 17, 2020
276f5ea
Updated help section on some batch functions
anege Nov 17, 2020
12e72ca
rename not matching var
marcobarilari Nov 28, 2020
29eab42
Merge pull request #191 from marcobarilari/marco_fix-convert3Dto4D
marcobarilari Nov 28, 2020
d17b773
replace all calls to spm_BIDS by equivalent from bids-matlab
Remi-Gau Nov 29, 2020
ec6fea7
Merge pull request #199 from cpp-lln-lab/remi-retino_prepropcess
Remi-Gau Nov 29, 2020
63cbc96
switch to using absolute path internally for readability
Remi-Gau Nov 29, 2020
39a599a
let getAnatFile choose the the file if nothing is specified
Remi-Gau Nov 29, 2020
c41d478
Merge pull request #200 from cpp-lln-lab/remi-retino_prepropcess
Remi-Gau Nov 29, 2020
0aa6220
Temporary remove saving functional QA ouput
Remi-Gau Nov 29, 2020
64b24bc
Merge pull request #208 from cpp-lln-lab/remi-fix_oversized_func_QA_o…
Remi-Gau Nov 29, 2020
388ab4c
fix #197
marcobarilari Nov 29, 2020
f6cbfcf
create demo for event related experiment
Remi-Gau Nov 26, 2020
89a623b
add function to create an empty model
Remi-Gau Nov 29, 2020
8001971
add function to create a default model json when none is provided
Remi-Gau Nov 29, 2020
c9d80dc
update face repetition demo
Remi-Gau Nov 29, 2020
ff03815
fix file names
Remi-Gau Nov 29, 2020
2bd7853
mh fix
Remi-Gau Nov 29, 2020
8199dce
add default design matrix to "run" step in default model json
Remi-Gau Nov 29, 2020
c4c552b
let the subject workflow deal with creating a model json if it is mis…
Remi-Gau Nov 29, 2020
4a3fb46
fix onsets in face repetition BIDS conversion
Remi-Gau Nov 29, 2020
03167c2
update script to run the face repetition demo
Remi-Gau Nov 29, 2020
8c0127e
remove wrongly commited test model json
Remi-Gau Nov 29, 2020
86c15f5
add a bit of documentation
Remi-Gau Nov 29, 2020
0698edd
Apply suggestions from code review
Remi-Gau Nov 29, 2020
6240998
add doc and test for conversion of events.tsv
Remi-Gau Nov 29, 2020
1b9a229
Merge pull request #181 from Remi-Gau/remi-QA_octave
Remi-Gau Nov 29, 2020
8582318
add work around to prevent crashes in CI + mh fix
Remi-Gau Nov 29, 2020
347ce4f
Merge pull request #178 from Remi-Gau/remi-copy_figures
Remi-Gau Nov 29, 2020
c62f6e7
Merge pull request #210 from cpp-lln-lab/marco_fix-#197
Remi-Gau Nov 29, 2020
ef5669d
update bids-matlab submodule
Remi-Gau Nov 29, 2020
459bc24
bids-matrlab submodule now tracks the repo from bids-standard
Remi-Gau Nov 29, 2020
f58a0d1
add extra ouput when asking for results
Remi-Gau Nov 29, 2020
a7367bb
mh fix
Remi-Gau Nov 29, 2020
e3252c9
Merge pull request #213 from Remi-Gau/remi-results
Remi-Gau Nov 29, 2020
8ed4088
make sure bidsCopy takes all sessions
Remi-Gau Nov 29, 2020
4a019f3
fix non ASCII character
Remi-Gau Nov 29, 2020
d8bb0bc
update spmup
Remi-Gau Nov 29, 2020
d3e2479
Merge pull request #214 from cpp-lln-lab/remi-retino_prepropcess
Remi-Gau Nov 29, 2020
b96b266
Merge remote-tracking branch 'cpp-lln-lab/master' into dev
CerenB Nov 30, 2020
5591156
Update src/batches/setBatchCoregistration.m
anege Nov 30, 2020
282fdd3
Update src/batches/setBatchCoregistrationFmap.m
anege Nov 30, 2020
4a3131b
Update src/batches/setBatchReslice.m
anege Nov 30, 2020
f7e374a
Update src/batches/setBatchReslice.m
anege Nov 30, 2020
73f1df6
Update src/batches/setBatchReslice.m
anege Nov 30, 2020
be6a55f
Merge pull request #188 from anege/Ane_dockathon
Remi-Gau Dec 7, 2020
a17ca2f
Merge pull request #190 from Remi-Gau/remi-new_demo
Remi-Gau Dec 7, 2020
3e28dc1
Merge pull request #222 from cpp-lln-lab/doc
Remi-Gau Dec 7, 2020
46f3f16
Merge remote-tracking branch 'cpp-lln-lab/dev' into dev
CerenB Dec 13, 2020
333ff7a
move requirement.txt file
Remi-Gau Dec 13, 2020
acbc092
update gitignore to ignore local vitrual environnement files
Remi-Gau Dec 13, 2020
ab425bb
fix doc
Remi-Gau Dec 13, 2020
520b874
update path to requirements.txt in RTD yml
Remi-Gau Dec 13, 2020
9660374
Merge pull request #230 from cpp-lln-lab/doc
Remi-Gau Dec 13, 2020
5cd1b51
add zenodo.json
Remi-Gau Dec 17, 2020
f6c5c9f
Update .zenodo.json
Remi-Gau Dec 17, 2020
83aaf74
add a badge in README with the doc build status
Remi-Gau Dec 23, 2020
51c80d5
Merge pull request #236 from Remi-Gau/remi-doc_bages
Remi-Gau Dec 23, 2020
cdea5f9
Apply suggestions from code review
Remi-Gau Dec 23, 2020
c2bab49
add remaining ORCID numbers
Remi-Gau Dec 23, 2020
d15cc55
Merge pull request #234 from Remi-Gau/remi-zenodo_json
Remi-Gau Dec 23, 2020
3b6bbe5
update miss hit config
Remi-Gau Dec 24, 2020
32c7283
mh autofix
Remi-Gau Dec 24, 2020
9783fc4
Merge pull request #237 from Remi-Gau/remi-update_miss_hit
Remi-Gau Dec 24, 2020
0c9f5d6
update CI
Remi-Gau Dec 24, 2020
043e648
restrict markdown files to check
Remi-Gau Dec 24, 2020
813aba5
fix dead link in README
Remi-Gau Dec 24, 2020
df4cc37
Merge pull request #239 from Remi-Gau/remi-update_CI
Remi-Gau Dec 24, 2020
585512e
add test for zipping batch
Remi-Gau Dec 25, 2020
5debf44
add template for batch
Remi-Gau Dec 25, 2020
0820e8f
add test for convert 3D to 4D
Remi-Gau Dec 25, 2020
7feedf1
add test image calculator batch
Remi-Gau Dec 25, 2020
00bd76c
refactor batch skull stripping
Remi-Gau Dec 25, 2020
5a16f7a
add test batch mean mask and anat
Remi-Gau Dec 26, 2020
280cc4d
fix tests specify contrast and create default model
Remi-Gau Dec 26, 2020
f6c1873
add test set batch mean mask and anat
Remi-Gau Dec 26, 2020
1cc0b90
improve doc subject level functions
Remi-Gau Dec 26, 2020
864bbf0
readd spm.mat and update .travis.yml
Remi-Gau Dec 26, 2020
7f8ed58
stop tracking dummy data
Remi-Gau Dec 26, 2020
241efad
ignore dummy data set
Remi-Gau Dec 26, 2020
6dd2572
update createDefaultModel
Remi-Gau Dec 26, 2020
8d43f91
refactor setBatchMeanAnat
Remi-Gau Dec 26, 2020
af66a1f
fix test setBatchMeanAnat
Remi-Gau Dec 26, 2020
907d749
update argin batcSTC
Remi-Gau Dec 26, 2020
2586e2a
update tests smoothing batches
Remi-Gau Dec 26, 2020
d847ea9
update argin order and help section of setBatch functions
Remi-Gau Dec 26, 2020
f14758a
refactor model and contrast specification
Remi-Gau Dec 26, 2020
ffe5872
fix tests after changing order argin
Remi-Gau Dec 26, 2020
6b499af
improve test set batch subject level contrast
Remi-Gau Dec 26, 2020
bc81df5
add test for batch for factorial design
Remi-Gau Dec 26, 2020
17d3c2f
fix test set batch smooth con image
Remi-Gau Dec 26, 2020
5a4ef51
add test coregistration fmap to functional
Remi-Gau Dec 26, 2020
e7fbe84
add test for setBatchComputeVDM
Remi-Gau Dec 26, 2020
3b62a5f
temporarily move test set batch coreg fmap to manual tests
Remi-Gau Dec 26, 2020
fd9d12d
add smoke test for setBatchCreateVDMs
Remi-Gau Dec 26, 2020
2d88252
move test to manualTest folder
Remi-Gau Dec 26, 2020
bb27faf
Merge pull request #240 from Remi-Gau/remi-add_tests
Remi-Gau Dec 26, 2020
912350a
fix bugs
Remi-Gau Dec 26, 2020
7650654
mh fix
Remi-Gau Dec 26, 2020
b806c12
fix bugs from change of argin order
Remi-Gau Dec 27, 2020
0a97dc5
update demo openneuro
Remi-Gau Dec 27, 2020
2ac507d
Merge pull request #243 from Remi-Gau/remi-fix_bugs_group_level
Remi-Gau Dec 27, 2020
108b05b
add option for HRF derivatives
Remi-Gau Dec 27, 2020
a3c3508
add light GLM QA
Remi-Gau Dec 27, 2020
98bf989
mh autofix
Remi-Gau Dec 27, 2020
573653b
fix failing test
Remi-Gau Dec 27, 2020
df57ca3
Merge pull request #246 from Remi-Gau/remi-hrf_derivatives
Remi-Gau Dec 27, 2020
b72a83f
reslicing TPMs to functional also creates a functional brain mask
Remi-Gau Dec 27, 2020
1966394
Merge pull request #247 from Remi-Gau/remi-func_brainmask
Remi-Gau Dec 27, 2020
1a1e5a3
add possibiity to parallelize workflows
Remi-Gau Dec 27, 2020
84c5f52
fix tests
Remi-Gau Dec 27, 2020
8fef1e1
Merge pull request #248 from Remi-Gau/remi-parallelize
Remi-Gau Dec 27, 2020
9285b7a
update content dummy dataset description
Remi-Gau Dec 27, 2020
2d56399
update content dummy dataset description
Remi-Gau Dec 27, 2020
f5219a2
add function to write dataset description
Remi-Gau Dec 27, 2020
5c1b8d5
Merge pull request #249 from Remi-Gau/remi-ds_decription
Remi-Gau Dec 27, 2020
a103ae8
mke bidsCopyRaw delete files from the other func than the task of int…
Remi-Gau Dec 27, 2020
fe1abe4
Merge pull request #250 from Remi-Gau/remi-bids_copy_filter_on_task
Remi-Gau Dec 27, 2020
c7e1522
update bids-matlab submodule
Remi-Gau Dec 30, 2020
773f0e4
Merge pull request #253 from Remi-Gau/dev
Remi-Gau Dec 30, 2020
67af163
create default result structure
Remi-Gau Dec 30, 2020
21b0557
add test setBatchResults
Remi-Gau Dec 30, 2020
b2e9b31
update test setBatchResults
Remi-Gau Dec 30, 2020
2db55d3
update setBatchResults for basic export
Remi-Gau Dec 30, 2020
33bec8a
change signature setBatchResults
Remi-Gau Dec 30, 2020
9992d5f
add input checks to setBatchResults
Remi-Gau Dec 30, 2020
c5b5dff
update defaultts
Remi-Gau Dec 30, 2020
89cd276
add test setBatchSubjectLevel
Remi-Gau Dec 30, 2020
a7dd4c7
change name returnDefaultResultsStructure
Remi-Gau Dec 30, 2020
cb7608b
make sure results defaults are set for all contrasts
Remi-Gau Dec 30, 2020
13317f6
make sure that the pool of workers is not opened unless asked for
Remi-Gau Dec 30, 2020
955de5b
update bidsResults
Remi-Gau Dec 30, 2020
7e1ae85
mh fix
Remi-Gau Dec 30, 2020
625e7eb
adapt options demo
Remi-Gau Dec 30, 2020
227c66e
add option to export binary mask of results
Remi-Gau Dec 30, 2020
0a28ca6
add option to export montage figure
Remi-Gau Dec 30, 2020
33bbba0
save subject level results log at the subejct level
Remi-Gau Dec 30, 2020
8fb1914
add some TODO
Remi-Gau Dec 30, 2020
b01afdc
Merge pull request #255 from Remi-Gau/remi-extra_results
Remi-Gau Dec 30, 2020
794f63b
bids matlab master branch update
CerenB Jan 5, 2021
6ea3e32
Merge remote-tracking branch 'cpp-lln-lab/dev' into dev
CerenB Jan 5, 2021
d269f73
parfor loop added
CerenB Jan 7, 2021
fe76134
mh_style fix
CerenB Jan 7, 2021
0fcd9fd
Update src/workflows/bidsSpatialPrepro.m
CerenB Jan 7, 2021
84a5b94
make sure that when set to false parallel.do only uses 1 worker
Remi-Gau Jan 7, 2021
e81402a
mh autofix
Remi-Gau Jan 7, 2021
9557217
Merge pull request #1 from Remi-Gau/remi-parfor_maangement
CerenB Jan 7, 2021
448182a
Merge pull request #257 from CerenB/cer-spatial_parfor
CerenB Jan 7, 2021
ab9076c
delete old duplicate of the function
marcobarilari Jan 12, 2021
80b0980
reorder spm batch inputs
marcobarilari Jan 12, 2021
7a77e63
Merge pull request #263 from cpp-lln-lab/marco_bug-fix-convert3Dto4D
marcobarilari Jan 12, 2021
4be8fb8
fix typo
CerenB Jan 14, 2021
2923419
Merge pull request #265 from CerenB/cer-bidsffx_figure
CerenB Jan 14, 2021
26db8ac
remove the dot in naming file
CerenB Jan 14, 2021
c1796f7
add extra underscore to Montage figure name
Remi-Gau Jan 14, 2021
8588b2e
Merge pull request #266 from CerenB/cer-montage_namefix
Remi-Gau Jan 14, 2021
ca3c628
fix failing test due to #266
Remi-Gau Jan 14, 2021
5b4fce6
Merge pull request #270 from Remi-Gau/dev
Remi-Gau Jan 14, 2021
abc24c7
small fix on argument order of bidsFFX
CerenB Jan 15, 2021
f12ca1f
Merge pull request #271 from CerenB/cer-demos-bidsRFX
Remi-Gau Jan 15, 2021
e1990d5
fix unit issues in STC
Remi-Gau Jan 16, 2021
b28b8a2
fix typo
marcobarilari Jan 16, 2021
0d96840
Merge pull request #273 from Remi-Gau/remi-fix_STC_unit
Remi-Gau Jan 16, 2021
1d3a813
add image to segment
CerenB Feb 3, 2021
536f31e
exceeding matrix dimension fix
CerenB Feb 3, 2021
489f731
sandbox trial for input file
CerenB Feb 3, 2021
e8b527a
provide image to segment as cell array
CerenB Feb 3, 2021
c780e3b
mh style fix
CerenB Feb 3, 2021
49a7596
mh style fix on reName func
CerenB Feb 3, 2021
06163c1
expand segmentation batch behavior to cover several files passed as i…
Remi-Gau Feb 8, 2021
e5583da
Merge pull request #280 from CerenB/cer-segment_img
CerenB Feb 8, 2021
544198a
Create github action to run tests
Remi-Gau Feb 8, 2021
353f93b
add spm to octave path manually and not via moxunit
Remi-Gau Feb 8, 2021
08b6f03
update set up for github action for test
Remi-Gau Feb 8, 2021
8b53b1b
Update octave path in CI
Remi-Gau Feb 8, 2021
1508dd8
check CPP_SPM early in workflow
Remi-Gau Feb 8, 2021
fbeecba
enable test in CI
Remi-Gau Feb 8, 2021
e1463eb
Merge pull request #286 from Remi-Gau/dev
Remi-Gau Feb 8, 2021
5e874be
remove abspath and replace by spm_file
Remi-Gau Feb 8, 2021
23f1e62
fix power spectra plotting
Remi-Gau Feb 8, 2021
45cb42f
Merge pull request #282 from Remi-Gau/remi-abspath
Remi-Gau Feb 8, 2021
a35d327
Merge pull request #283 from Remi-Gau/remi-fslmerge_warning
Remi-Gau Feb 8, 2021
49c2d3e
update test and add system tests
Remi-Gau Feb 8, 2021
2a8eed1
only run system test in system test action
Remi-Gau Feb 8, 2021
44205d3
only run system tests on PR to main
Remi-Gau Feb 8, 2021
cbe3fee
Merge pull request #289 from Remi-Gau/remi-fix_CI
Remi-Gau Feb 8, 2021
9f1c005
make sure bidsCopy does not erase previous tasks copied to derivatives
Remi-Gau Feb 8, 2021
2f62e42
refactor bidsCopy
Remi-Gau Feb 8, 2021
62823ac
call ffxdir with a function in the subfun
CerenB Feb 10, 2021
9099903
add ffxDir into function argument instead
CerenB Feb 10, 2021
f01d9c7
another parameter added to the subfun argument
CerenB Feb 10, 2021
ab2f5a6
mh_style fix
CerenB Feb 10, 2021
0e889d0
let's clean the betas
CerenB Feb 10, 2021
e0718b2
removal of deleting .mat file
CerenB Feb 10, 2021
4dcf530
cleaning
CerenB Feb 10, 2021
21b8f71
mh_style fix
CerenB Feb 10, 2021
c5aade4
move the manual coregistration code to lib
Remi-Gau Feb 11, 2021
64a599a
Merge pull request #295 from Remi-Gau/remi-move_mancoreg
Remi-Gau Feb 11, 2021
e49f33f
Merge pull request #294 from CerenB/cer-bidsConcat-hotfix
CerenB Feb 12, 2021
cd98122
adapted for looping through subjects
CerenB Feb 17, 2021
82f9390
mh fix
CerenB Feb 17, 2021
e5637d1
Merge pull request #296 from CerenB/cer-bidsConcatBeta-fix
CerenB Feb 17, 2021
585c72b
add resize_image function to library
Remi-Gau Feb 17, 2021
29d4a59
Merge pull request #297 from Remi-Gau/remi-resize°img
Remi-Gau Feb 17, 2021
abcca59
make bidsCopy copies the side car json files
Remi-Gau Feb 27, 2021
9963e3a
do not create dummy .nii.gz files
Remi-Gau Feb 27, 2021
5833e6d
Merge pull request #291 from Remi-Gau/remi-fixs_bidsCopy
Remi-Gau Feb 27, 2021
858f1dd
docs: update README.md [skip ci]
allcontributors[bot] Jan 7, 2021
8d4b8f3
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jan 7, 2021
e39237d
docs: update README.md [skip ci]
allcontributors[bot] Jan 7, 2021
4692c69
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jan 7, 2021
c1a3636
skip QA workflows when runnning octave
Remi-Gau Feb 27, 2021
4dfc816
Merge branch 'master' into release-0.2.0
Remi-Gau Feb 27, 2021
c3500d7
skip the rprintFigure batch when in command line
Remi-Gau Feb 27, 2021
adc0687
skip contrast and results batch in system test in CI
Remi-Gau Feb 27, 2021
d2daf08
remove travis from CI
Remi-Gau Feb 27, 2021
58cb92e
change name worklow
Remi-Gau Feb 27, 2021
2743354
simplify system test
Remi-Gau Feb 27, 2021
075d002
update version
Remi-Gau Feb 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions .github/workflows/check_markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Check Markdown

on:
push:
branches:
- master
pull_request:
branches: '*'

jobs:
build:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 1

- uses: actions/setup-node@v2
with:
node-version: '10'

- name: Install dependencies and check markdown
run: |
npm install `cat npm-requirements.txt`
npx remark *.md --frail
npx remark ./docs/ --frail
npx remark ./demos/ --frail
npx remark ./tests/ --frail
1 change: 0 additions & 1 deletion .github/workflows/check_md_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
push:
branches:
- master
- dev
pull_request:
branches: '*'

Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/miss_hit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- master
- dev
pull_request:
branches: '*'

Expand All @@ -28,12 +27,16 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
pip3 install miss_hit
pip3 install -r requirements.txt

- name: Miss_hit code quality
- name: MISS_HIT Code style
run: |
mh_metric . --ci
mh_style --process-slx

- name: Miss_hit code style
- name: MISS_HIT Metrics
run: |
mh_style .
mh_metric --ci

- name: MISS_HIT Bug finder
run: |
mh_lint
75 changes: 75 additions & 0 deletions .github/workflows/run_system_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: system tests

# Uses the cron schedule for github actions
#
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
#
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *

on:
push:
branches:
- master
- main
pull_request:
branches:
- 'master'
- 'main'
schedule:
- cron: "* * 1 * *"

env:
OCTFLAGS: --no-gui --no-window-system --silent

jobs:
build:

runs-on: ubuntu-20.04

steps:

- name: Install dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y install octave liboctave-dev
sudo apt-get -y install nodejs npm

- name: Clone cpp_spm
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 2

- name: Install SPM
run: |
git clone https://github.com/spm/spm12.git --depth 1
make -C spm12/src PLATFORM=octave distclean
make -C spm12/src PLATFORM=octave
make -C spm12/src PLATFORM=octave install
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"

- name: Update octave path
run: |
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"

- name: Prepare data
run: |
output_folder='demos/MoAE/output/'
mkdir $output_folder
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
unzip $output_folder'MoAEpilot.zip' -d $output_folder

- name: Run system tests
run: |
cd demos/MoAE
octave $OCTFLAGS --eval "MoAEpilot_run"

83 changes: 83 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: tests and coverage

# Uses the cron schedule for github actions
#
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#scheduled-events
#
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *

on:
push:
branches:
- dev
pull_request:
branches: '*'
schedule:
- cron: "* * 1 * *"

env:
OCTFLAGS: --no-gui --no-window-system --silent

jobs:
build:

runs-on: ubuntu-20.04

steps:

- name: Install dependencies
run: |
sudo apt-get -y -qq update
sudo apt-get -y install octave liboctave-dev
sudo apt-get -y install nodejs npm

- name: Clone cpp_spm
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 2

- name: Install SPM
run: |
git clone https://github.com/spm/spm12.git --depth 1
make -C spm12/src PLATFORM=octave distclean
make -C spm12/src PLATFORM=octave
make -C spm12/src PLATFORM=octave install
octave $OCTFLAGS --eval "addpath(fullfile(pwd, 'spm12')); savepath();"

- name: Install Moxunit and MOcov
run: |
git clone https://github.com/MOxUnit/MOxUnit.git --depth 1
make -C MOxUnit install
git clone https://github.com/MOcov/MOcov.git --depth 1
make -C MOcov install

- name: Update octave path
run: |
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'lib'))); savepath();"
octave $OCTFLAGS --eval "addpath(genpath(fullfile(pwd, 'src'))); savepath();"

- name: Prepare data
run: |
output_folder='demos/MoAE/output/'
mkdir $output_folder
curl http://www.fil.ion.ucl.ac.uk/spm/download/data/MoAEpilot/MoAEpilot.bids.zip --output $output_folder'MoAEpilot.zip'
unzip $output_folder'MoAEpilot.zip' -d $output_folder
cd tests
sh createDummyDataSet.sh
cd ..

- name: Run tests
run: |
octave $OCTFLAGS --eval "runTests"
cat test_report.log | grep 0
bash <(curl -s https://codecov.io/bash)

18 changes: 13 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,31 @@
*.zip
*.ps

options_task-*.json
options_task-*date*.json
onsets*_events.mat

# files in the demo folder related to running the demo analysis
demos/MoAE/*.zip
demos/*/*.zip
demos/*/derivatives/*
demos/MoAE/output/*
demos/MoAE/derivatives/*
demos/spm*/raw
demos/spm*/source

# test folder
# test folder and dummy data
tests/sub-01/*
tests/group/*
tests/models/*.json
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.nii*
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.tsv
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.txt
tests/dummyData/derivatives/cpp_spm/sub-*/*/*/*.json
tests/dummyData/derivatives/cpp_spm/sub-*/stats/*/*/*.nii*

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

# ignore virtual env
cpp_bids_spm/*
cpp_spm/*

# visual studio code stuff
.vscode
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "lib/bids-matlab"]
path = lib/bids-matlab
url = https://github.com/cpp-lln-lab/bids-matlab.git
url = https://github.com/bids-standard/bids-matlab.git
[submodule "lib/spmup"]
path = lib/spmup
url = https://github.com/CPernet/spmup.git
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ formats:
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
105 changes: 0 additions & 105 deletions .travis.yml

This file was deleted.

Loading