@@ -46,11 +46,17 @@ jobs:
46
46
run : python -m build
47
47
- run : twine check dist/*
48
48
- name : Build git archive
49
- run : git archive -v -o dist/nibabel-archive.tgz HEAD
50
- - uses : actions/upload-artifact@v3
49
+ run : mkdir archive && git archive -v -o archive/nibabel-archive.tgz HEAD
50
+ - name : Upload sdist and wheel artifacts
51
+ uses : actions/upload-artifact@v3
51
52
with :
52
53
name : dist
53
54
path : dist/
55
+ - name : Upload git archive artifact
56
+ uses : actions/upload-artifact@v3
57
+ with :
58
+ name : archive
59
+ path : archive/
54
60
55
61
test-package :
56
62
runs-on : ubuntu-latest
@@ -59,10 +65,18 @@ jobs:
59
65
matrix :
60
66
package : ['wheel', 'sdist', 'archive']
61
67
steps :
62
- - uses : actions/download-artifact@v3
68
+ - name : Download sdist and wheel artifacts
69
+ uses : actions/download-artifact@v3
63
70
with :
64
71
name : dist
65
72
path : dist/
73
+ if : matrix.package != 'archive'
74
+ - name : Download git archive artifact
75
+ uses : actions/download-artifact@v3
76
+ with :
77
+ name : archive
78
+ path : archive/
79
+ if : matrix.package == 'archive'
66
80
- uses : actions/setup-python@v4
67
81
with :
68
82
python-version : 3
77
91
run : pip install dist/nibabel-*.tar.gz
78
92
if : matrix.package == 'sdist'
79
93
- name : Install archive
80
- run : pip install dist /nibabel-archive.tgz
94
+ run : pip install archive /nibabel-archive.tgz
81
95
if : matrix.package == 'archive'
82
96
- run : python -c 'import nibabel; print(nibabel.__version__)'
83
97
- name : Install test extras
0 commit comments