Skip to content

Commit 7bc3478

Browse files
committed
test_wheels
1 parent 500f67b commit 7bc3478

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/python-publish.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: [ 3.7, 3.8, 3.9 ]
19+
python-version: [ 3.8, 3.11 ]
2020

2121
steps:
2222
- uses: actions/checkout@v2
@@ -52,7 +52,7 @@ jobs:
5252
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_wheels'
5353
strategy:
5454
matrix:
55-
os: [ubuntu-20.04, windows-2019, macos-10.15]
55+
os: [ubuntu-latest, windows-2019, macos-13]
5656

5757
steps:
5858
- uses: actions/checkout@v2
@@ -62,17 +62,18 @@ jobs:
6262
uses: pypa/[email protected]
6363
env:
6464
CIBW_BEFORE_BUILD: pip install numpy==1.19.5
65-
CIBW_BUILD: cp36-* cp37-* cp38-*
65+
CIBW_BUILD: cp38-*
6666

6767
- name: Build wheels
6868
uses: pypa/[email protected]
6969
env:
7070
CIBW_BEFORE_BUILD: pip install numpy==1.21.6
71-
CIBW_BUILD: cp39-* cp310-*
71+
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
7272
CIBW_ARCHS_MACOS: x86_64 universal2
7373

74-
- uses: actions/upload-artifact@v2
74+
- uses: actions/upload-artifact@v4
7575
with:
76+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
7677
path: ./wheelhouse/*.whl
7778

7879
build_sdist:
@@ -92,10 +93,12 @@ jobs:
9293
- name: Build sdist
9394
run: |
9495
python setup.py sdist
95-
- uses: actions/upload-artifact@v2
96+
- uses: actions/upload-artifact@v4
9697
with:
98+
name: cibw-sdist
9799
path: dist/*.tar.gz
98100

101+
99102
upload_pypi:
100103
needs: [build_wheels, build_sdist, test_code]
101104
runs-on: ubuntu-latest
@@ -105,10 +108,12 @@ jobs:
105108
# alternatively, to publish when a GitHub Release is created, use the following rule:
106109
# if: github.event_name == 'release' && github.event.action == 'published'
107110
steps:
108-
- uses: actions/download-artifact@v2
111+
- uses: actions/download-artifact@v4
109112
with:
110-
name: artifact
113+
# unpacks all CIBW artifacts into dist/
114+
pattern: cibw-*
111115
path: dist
116+
merge-multiple: true
112117

113118
- uses: pypa/[email protected]
114119
with:

0 commit comments

Comments
 (0)