16
16
runs-on : ubuntu-latest
17
17
strategy :
18
18
matrix :
19
- python-version : [ 3.7, 3. 8, 3.9 ]
19
+ python-version : [ 3.8, 3.11 ]
20
20
21
21
steps :
22
22
- uses : actions/checkout@v2
52
52
if : github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_wheels'
53
53
strategy :
54
54
matrix :
55
- os : [ubuntu-20.04 , windows-2019, macos-10.15 ]
55
+ os : [ubuntu-latest , windows-2019, macos-13 ]
56
56
57
57
steps :
58
58
- uses : actions/checkout@v2
@@ -62,17 +62,18 @@ jobs:
62
62
63
63
env :
64
64
CIBW_BEFORE_BUILD : pip install numpy==1.19.5
65
- CIBW_BUILD : cp36-* cp37-* cp38-*
65
+ CIBW_BUILD : cp38-*
66
66
67
67
- name : Build wheels
68
68
69
69
env :
70
70
CIBW_BEFORE_BUILD : pip install numpy==1.21.6
71
- CIBW_BUILD : cp39-* cp310-*
71
+ CIBW_BUILD : cp39-* cp310-* cp311-* cp312-*
72
72
CIBW_ARCHS_MACOS : x86_64 universal2
73
73
74
- - uses : actions/upload-artifact@v2
74
+ - uses : actions/upload-artifact@v4
75
75
with :
76
+ name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
76
77
path : ./wheelhouse/*.whl
77
78
78
79
build_sdist :
@@ -92,10 +93,12 @@ jobs:
92
93
- name : Build sdist
93
94
run : |
94
95
python setup.py sdist
95
- - uses : actions/upload-artifact@v2
96
+ - uses : actions/upload-artifact@v4
96
97
with :
98
+ name : cibw-sdist
97
99
path : dist/*.tar.gz
98
100
101
+
99
102
upload_pypi :
100
103
needs : [build_wheels, build_sdist, test_code]
101
104
runs-on : ubuntu-latest
@@ -105,10 +108,12 @@ jobs:
105
108
# alternatively, to publish when a GitHub Release is created, use the following rule:
106
109
# if: github.event_name == 'release' && github.event.action == 'published'
107
110
steps :
108
- - uses : actions/download-artifact@v2
111
+ - uses : actions/download-artifact@v4
109
112
with :
110
- name : artifact
113
+ # unpacks all CIBW artifacts into dist/
114
+ pattern : cibw-*
111
115
path : dist
116
+ merge-multiple : true
112
117
113
118
114
119
with :
0 commit comments