Skip to content

Commit

Permalink
[TST] Add heavily-nonuniform boldrefs for regression tests
Browse files Browse the repository at this point in the history
Refs. #1000, #1050, #1321.

Also includes a new filter of branches so builds other than tests
are skipped if the name of the branch starts with ``tests?/``.
  • Loading branch information
oesteban committed Oct 17, 2018
1 parent 3c6303d commit 6215779
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ jobs:
steps:
- restore_cache:
keys:
- regression-v0-{{ epoch }}
- regression-v0-
- regression-v1-{{ epoch }}
- regression-v1-
- run:
name: Get truncated BOLD series
command: |
Expand All @@ -193,7 +193,7 @@ jobs:
paths:
- data
- save_cache:
key: regression-v0-{{ epoch }}
key: regression-v1-{{ epoch }}
paths:
- /tmp/data

Expand Down Expand Up @@ -719,7 +719,9 @@ workflows:
- get_data:
filters:
branches:
ignore: /docs?\/.*/
ignore:
- /docs?\/.*/
- /tests?\/.*/
tags:
only: /.*/

Expand All @@ -740,7 +742,9 @@ workflows:
- build
filters:
branches:
ignore: /docs?\/.*/
ignore:
- /docs?\/.*/
- /tests?\/.*/
tags:
only: /.*/

Expand All @@ -760,7 +764,9 @@ workflows:
- build
filters:
branches:
ignore: /docs?\/.*/
ignore:
- /docs?\/.*/
- /tests?\/.*/
tags:
only: /.*/

Expand All @@ -770,7 +776,9 @@ workflows:
- build
filters:
branches:
ignore: /docs?\/.*/
ignore:
- /docs?\/.*/
- /tests?\/.*/
tags:
only: /.*/

Expand All @@ -781,7 +789,9 @@ workflows:
filters:
branches:
# only: /meepi.*/
ignore: /docs?\/.*/
ignore:
- /docs?\/.*/
- /tests?\/.*/
tags:
only: /.*/

Expand Down
8 changes: 8 additions & 0 deletions fmriprep/workflows/bold/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ def symmetric_overlap(img1, img2):
'ds000216/sub-03_task-rest_echo-4_bold.nii.gz',
'ds000237/sub-03_task-MemorySpan_acq-multiband_run-01_bold.nii.gz',
'ds000237/sub-06_task-MemorySpan_acq-multiband_run-01_bold.nii.gz',
'ds001240/sub-26_task-localizerimagination_bold.nii.gz',
'ds001240/sub-26_task-localizerviewing_bold.nii.gz',
'ds001240/sub-26_task-molencoding_run-01_bold.nii.gz',
'ds001240/sub-26_task-molencoding_run-02_bold.nii.gz',
'ds001240/sub-26_task-molretrieval_run-01_bold.nii.gz',
'ds001240/sub-26_task-molretrieval_run-02_bold.nii.gz',
'ds001240/sub-26_task-rest_bold.nii.gz',
'ds001362/sub-01_task-taskname_run-01_bold.nii.gz',
)
])
def test_masking(input_fname, expected_fname):
Expand Down

0 comments on commit 6215779

Please sign in to comment.