@@ -15,7 +15,7 @@ concurrency:
15
15
cancel-in-progress : true
16
16
17
17
jobs :
18
- build_sdist :
18
+ build-sdist :
19
19
name : Build sdist
20
20
runs-on : ubuntu-latest
21
21
steps :
@@ -27,35 +27,37 @@ jobs:
27
27
name : sdist
28
28
path : ./dist/*.tar.gz
29
29
30
- build_wheels :
30
+ build-wheel :
31
31
name : Build wheel for ${{ matrix.python }}-${{ matrix.buildplat[1] }}
32
32
runs-on : ${{ matrix.buildplat[0] }}
33
33
strategy :
34
34
fail-fast : false
35
35
matrix :
36
36
buildplat :
37
- - [ubuntu-20.04, manylinux_x86_64]
38
37
- [ubuntu-20.04, musllinux_x86_64]
39
38
- [macos-12, macosx_*]
40
39
- [windows-2019, win_amd64]
41
40
python : ["cp37", "cp38", "cp39", "cp310", "cp311"]
41
+ include :
42
+ # Manylinux builds are cheap, do all in one
43
+ - {buildplat: ["ubuntu-20.04", "manylinux_x86_64"], python: "*"}
42
44
43
45
steps :
44
46
- uses : actions/checkout@v3
45
47
46
- - name : Build wheels
48
+ - name : Build wheel(s)
47
49
run : pipx run cibuildwheel
48
50
env :
49
51
CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
50
52
51
53
- uses : actions/upload-artifact@v3
52
54
with :
53
- name : ${{ matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
55
+ name : ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
54
56
path : ./wheelhouse/*.whl
55
57
56
58
test-sdist :
57
59
name : Test sdist
58
- needs : [build_sdist ]
60
+ needs : [build-sdist ]
59
61
runs-on : ubuntu-latest
60
62
steps :
61
63
- uses : actions/download-artifact@v3
74
76
run : pip install pytest
75
77
- name : Run tests
76
78
run : pytest -v --pyargs nitime
79
+
80
+ pre-publish :
81
+ runs-on : ubuntu-latest
82
+ needs : [test-sdist, build-wheel]
83
+ steps :
84
+ - uses : actions/download-artifact@v3
85
+ with :
86
+ path : dist/
87
+ - run : ls -lR
88
+ - run : mv dist/*/*.{tar.gz,whl} dist
89
+ - run : rmdir dist/*/
90
+ - run : ls -lR
0 commit comments