@@ -66,17 +66,17 @@ jobs:
66
66
package : ['wheel', 'sdist', 'archive']
67
67
steps :
68
68
- name : Download sdist and wheel artifacts
69
+ if : matrix.package != 'archive'
69
70
uses : actions/download-artifact@v3
70
71
with :
71
72
name : dist
72
73
path : dist/
73
- if : matrix.package != 'archive'
74
74
- name : Download git archive artifact
75
+ if : matrix.package == 'archive'
75
76
uses : actions/download-artifact@v3
76
77
with :
77
78
name : archive
78
79
path : archive/
79
- if : matrix.package == 'archive'
80
80
- uses : actions/setup-python@v4
81
81
with :
82
82
python-version : 3
@@ -85,14 +85,14 @@ jobs:
85
85
- name : Update pip
86
86
run : pip install --upgrade pip
87
87
- name : Install wheel
88
- run : pip install dist/nibabel-*.whl
89
88
if : matrix.package == 'wheel'
89
+ run : pip install dist/nibabel-*.whl
90
90
- name : Install sdist
91
- run : pip install dist/nibabel-*.tar.gz
92
91
if : matrix.package == 'sdist'
92
+ run : pip install dist/nibabel-*.tar.gz
93
93
- name : Install archive
94
- run : pip install archive/nibabel-archive.tgz
95
94
if : matrix.package == 'archive'
95
+ run : pip install archive/nibabel-archive.tgz
96
96
- run : python -c 'import nibabel; print(nibabel.__version__)'
97
97
- name : Install test extras
98
98
run : pip install nibabel[test]
@@ -179,17 +179,17 @@ jobs:
179
179
- name : Install NiBabel
180
180
run : tools/ci/install.sh
181
181
- name : Run tests
182
- run : tools/ci/check.sh
183
182
if : ${{ matrix.check != 'skiptests' }}
183
+ run : tools/ci/check.sh
184
184
- name : Submit coverage
185
- run : tools/ci/submit_coverage.sh
186
185
if : ${{ always() }}
186
+ run : tools/ci/submit_coverage.sh
187
187
- name : Upload pytest test results
188
+ if : ${{ always() && matrix.check == 'test' }}
188
189
uses : actions/upload-artifact@v3
189
190
with :
190
191
name : pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
191
192
path : for_testing/test-results.xml
192
- if : ${{ always() && matrix.check == 'test' }}
193
193
194
194
publish :
195
195
runs-on : ubuntu-latest
0 commit comments