@@ -107,38 +107,37 @@ jobs:
107
107
python -m pip install --upgrade pip
108
108
pip install datalad==0.14.7
109
109
110
- - name : WTF!?
110
+ - name : Datalad WTF
111
111
run : |
112
112
datalad wtf
113
113
114
- - name : " cached data"
114
+ - name : Install cached data
115
115
uses : actions/cache@v2
116
116
id : cache
117
117
with :
118
118
path : /tmp/.cache/data
119
- key : ds003-v4 -${{ runner.os }}-${{ github.job }}
119
+ key : ds003-v5 -${{ github.ref_name }}-${{ github.sha }}
120
120
restore-keys : |
121
- ds003-v4-${{ runner.os }}-
122
- ds003-v4-
123
- ds003-
121
+ ds003-v5-${{ github.ref_name }}-
122
+ ds003-v5-
124
123
125
124
- name : " Install fMRIPrep derivatives of ds000003 and reference data"
126
125
# if: steps.cache.outputs.cache-hit != 'true'
127
126
run : |
128
127
cd /tmp/.cache/data
129
- datalad install -r -s https://gin.g-node.org/shashankbansal56/fitlins_tests
130
- datalad update --merge -d fitlins_tests
131
- cd fitlins_tests
132
- datalad get ds003/ fmriprep/sub-0{1,2,3}/func/*_space-MNI152NLin2009cAsym_desc-*.nii.gz \
133
- ds003/ fmriprep/sub-0{1,2,3}/func/*_desc-confounds_*.tsv \
134
- ds003/ fmriprep/dataset_description.json \
135
- ds003/ fmriprep/sub-*/*/*.json
136
- datalad get -r ds003/nistats_smooth/ ds003/afni_smooth/ ds003/afni_blurto/ ds003/nistats_blurto/
128
+ datalad install -r -s https://gin.g-node.org/markiewicz/fitlins-tests
129
+ datalad update --merge -d fitlins-tests
130
+ cd fitlins-tests
131
+ datalad get inputs/ds000003- fmriprep/sub-0{1,2,3}/func/*_space-MNI152NLin2009cAsym_desc-*.nii.gz \
132
+ inputs/ds000003- fmriprep/sub-0{1,2,3}/func/*_desc-confounds_*.tsv \
133
+ inputs/ds000003- fmriprep/dataset_description.json \
134
+ inputs/ds000003- fmriprep/sub-*/*/*.json \
135
+ outputs
137
136
datalad status
138
137
139
138
- name : " Check installed derivatives data"
140
139
run : |
141
- cd /tmp/.cache/data/fitlins_tests/ds003
140
+ cd /tmp/.cache/data/fitlins-tests/
142
141
git log --oneline --graph
143
142
du -sh .
144
143
@@ -225,11 +224,7 @@ jobs:
225
224
id : cache
226
225
with :
227
226
path : /tmp/.cache/data
228
- key : ds003-v4-${{ runner.os }}
229
- restore-keys : |
230
- ds003-v4-${{ runner.os }}
231
- ds003-v4-
232
- ds003-
227
+ key : ds003-v5-${{ github.ref_name }}-${{ github.sha }}
233
228
234
229
- name : Run fitlins
235
230
timeout-minutes : 240
@@ -240,7 +235,7 @@ jobs:
240
235
chmod 777 /tmp/ds003/work /tmp/ds003/derivatives
241
236
export CONDA_PREFIX=/opt/miniconda-latest/envs/neuro
242
237
echo $CONDA_PREFIX
243
- docker run --rm -v /tmp/.cache/data/fitlins_tests :/data:ro \
238
+ docker run --rm -v /tmp/.cache/data/fitlins-tests :/data:ro \
244
239
-v /tmp/ds003/derivatives:/out \
245
240
-v /tmp/ds003/work:/scratch \
246
241
-v $GITHUB_WORKSPACE:/src/fitlins \
@@ -252,14 +247,14 @@ jobs:
252
247
--cov-report xml:/scratch/.coverage_pytest_${{ matrix.test_name }}.xml \
253
248
$CONDA_PREFIX/lib/python3.9/site-packages/fitlins/tests \
254
249
--fitlins-path=$CONDA_PREFIX/bin/fitlins \
255
- --bids-dir=/data/ds003/fmriprep/sourcedata \
250
+ --bids-dir=/data/inputs/ds000003 \
256
251
--output-dir=/out \
257
- --derivatives=/data/ds003/ fmriprep \
252
+ --derivatives=/data/inputs/ds000003- fmriprep \
258
253
--model=/src/fitlins/examples/models/ds000003/models/model-001_smdl.json \
259
254
--work-dir=/scratch \
260
255
--test-name=${{ matrix.test_name }} \
261
256
--database-path=/out/ds003_database \
262
- --reference-dir=/data/ds003
257
+ --reference-dir=/data/outputs/
263
258
264
259
- name : Combine coverage and submit
265
260
uses : codecov/codecov-action@v2
0 commit comments