@@ -66,17 +66,17 @@ jobs:
6666 package : ['wheel', 'sdist', 'archive']
6767 steps :
6868 - name : Download sdist and wheel artifacts
69+ if : matrix.package != 'archive'
6970 uses : actions/download-artifact@v3
7071 with :
7172 name : dist
7273 path : dist/
73- if : matrix.package != 'archive'
7474 - name : Download git archive artifact
75+ if : matrix.package == 'archive'
7576 uses : actions/download-artifact@v3
7677 with :
7778 name : archive
7879 path : archive/
79- if : matrix.package == 'archive'
8080 - uses : actions/setup-python@v4
8181 with :
8282 python-version : 3
@@ -85,14 +85,14 @@ jobs:
8585 - name : Update pip
8686 run : pip install --upgrade pip
8787 - name : Install wheel
88- run : pip install dist/nibabel-*.whl
8988 if : matrix.package == 'wheel'
89+ run : pip install dist/nibabel-*.whl
9090 - name : Install sdist
91- run : pip install dist/nibabel-*.tar.gz
9291 if : matrix.package == 'sdist'
92+ run : pip install dist/nibabel-*.tar.gz
9393 - name : Install archive
94- run : pip install archive/nibabel-archive.tgz
9594 if : matrix.package == 'archive'
95+ run : pip install archive/nibabel-archive.tgz
9696 - run : python -c 'import nibabel; print(nibabel.__version__)'
9797 - name : Install test extras
9898 run : pip install nibabel[test]
@@ -179,17 +179,17 @@ jobs:
179179 - name : Install NiBabel
180180 run : tools/ci/install.sh
181181 - name : Run tests
182- run : tools/ci/check.sh
183182 if : ${{ matrix.check != 'skiptests' }}
183+ run : tools/ci/check.sh
184184 - name : Submit coverage
185- run : tools/ci/submit_coverage.sh
186185 if : ${{ always() }}
186+ run : tools/ci/submit_coverage.sh
187187 - name : Upload pytest test results
188+ if : ${{ always() && matrix.check == 'test' }}
188189 uses : actions/upload-artifact@v3
189190 with :
190191 name : pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
191192 path : for_testing/test-results.xml
192- if : ${{ always() && matrix.check == 'test' }}
193193
194194 publish :
195195 runs-on : ubuntu-latest
0 commit comments