12
12
schedule :
13
13
- cron : ' 0 0 * * *'
14
14
15
+ concurrency :
16
+ group : python-${{ github.ref }}
17
+ cancel-in-progress : true
15
18
16
19
jobs :
17
20
check_if_skip :
@@ -38,17 +41,14 @@ jobs:
38
41
needs : check_if_skip
39
42
if : " !contains(needs.check_if_skip.outputs.commit_message, '[skip ci]')"
40
43
runs-on : ubuntu-latest
41
- strategy :
42
- matrix :
43
- python-version : ["3.10"]
44
44
steps :
45
45
- uses : actions/checkout@v3
46
46
with :
47
47
fetch-depth : 0
48
- - name : Set up Python ${{ matrix.python-version }}
49
- uses : actions/setup-python@v3
48
+ - name : Set up Python 3
49
+ uses : actions/setup-python@v4
50
50
with :
51
- python-version : ${{ matrix.python-version }}
51
+ python-version : 3
52
52
- name : Display Python version
53
53
run : python -c "import sys; print(sys.version)"
54
54
- name : Check python version and install build
73
73
- name : Create test data directory
74
74
run : mkdir -p $HOME/.cache/stanford-crn
75
75
- name : Load test data cache
76
- uses : actions/cache@v2
76
+ uses : actions/cache@v3
77
77
id : stanford-crn
78
78
with :
79
79
path : ~/.cache/stanford-crn/
@@ -132,17 +132,17 @@ jobs:
132
132
with :
133
133
fetch-depth : 0
134
134
- name : Set up Python ${{ matrix.python-version }}
135
- uses : actions/setup-python@v3
135
+ uses : actions/setup-python@v4
136
136
with :
137
137
python-version : ${{ matrix.python-version }}
138
138
- name : Load test data cache
139
- uses : actions/cache@v2
139
+ uses : actions/cache@v3
140
140
id : stanford-crn
141
141
with :
142
142
path : ~/.cache/stanford-crn/
143
143
key : data-v0-${{ github.ref_name }}-${{ github.sha }}
144
144
- name : Load TemplateFlow cache
145
- uses : actions/cache@v2
145
+ uses : actions/cache@v3
146
146
id : templateflow
147
147
with :
148
148
path : ~/.cache/templateflow
@@ -191,7 +191,7 @@ jobs:
191
191
name : Submit to CodeCov
192
192
193
193
test-pre :
194
- needs : [build, get_data, check_if_skip]
194
+ needs : [get_data, check_if_skip]
195
195
if : ${{ !contains(needs.check_if_skip.outputs.commit_message, '[skip pre]') }}
196
196
runs-on : ubuntu-latest
197
197
strategy :
@@ -217,43 +217,26 @@ jobs:
217
217
with :
218
218
fetch-depth : 0
219
219
- name : Set up Python ${{ matrix.python-version }}
220
- uses : actions/setup-python@v3
220
+ uses : actions/setup-python@v4
221
221
with :
222
222
python-version : ${{ matrix.python-version }}
223
223
- name : Load test data cache
224
- uses : actions/cache@v2
224
+ uses : actions/cache@v3
225
225
id : stanford-crn
226
226
with :
227
227
path : ~/.cache/stanford-crn/
228
228
key : data-v0-${{ github.ref_name }}-${{ github.sha }}
229
229
- name : Load TemplateFlow cache
230
- uses : actions/cache@v2
230
+ uses : actions/cache@v3
231
231
id : templateflow
232
232
with :
233
233
path : ~/.cache/templateflow
234
234
key : templateflow-v0-${{ github.ref_name }}-${{ strategy.job-index }}-${{ github.sha }}
235
235
restore-keys : |
236
236
templateflow-v0-${{ github.ref_name }}-
237
237
templateflow-v0-
238
- - name : Fetch packages
239
- uses : actions/download-artifact@v3
240
- with :
241
- name : dist
242
- path : dist/
243
- - name : Select archive
244
- run : |
245
- if [ "$INSTALL_TYPE" = "sdist" ]; then
246
- ARCHIVE=$( ls dist/*.tar.gz )
247
- elif [ "$INSTALL_TYPE" = "wheel" ]; then
248
- ARCHIVE=$( ls dist/*.whl )
249
- elif [ "$INSTALL_TYPE" = "repo" ]; then
250
- ARCHIVE="."
251
- elif [ "$INSTALL_TYPE" = "editable" ]; then
252
- ARCHIVE="-e ."
253
- fi
254
- echo "ARCHIVE=$ARCHIVE" >> $GITHUB_ENV
255
238
- name : Install package
256
- run : python -m pip install $PIP_FLAGS $ARCHIVE
239
+ run : python -m pip install $PIP_FLAGS .
257
240
- name : Check version
258
241
run : |
259
242
# Interpolate version
@@ -272,7 +255,7 @@ jobs:
272
255
uses : GabrielBB/xvfb-action@v1
273
256
with :
274
257
run : pytest -sv --no-xvfb --doctest-modules --cov niworkflows niworkflows
275
- - uses : codecov/codecov-action@v2
258
+ - uses : codecov/codecov-action@v3
276
259
name : Submit to CodeCov
277
260
278
261
flake8 :
@@ -282,7 +265,7 @@ jobs:
282
265
steps :
283
266
- uses : actions/checkout@v3
284
267
- name : Set up Python 3.7
285
- uses : actions/setup-python@v3
268
+ uses : actions/setup-python@v4
286
269
with :
287
270
python-version : 3.7
288
271
- run : pip install flake8
0 commit comments