Skip to content

Commit

Permalink
test_wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
abelcarreras committed Nov 6, 2024
1 parent 500f67b commit 7bc3478
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9 ]
python-version: [ 3.8, 3.11 ]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/test_wheels'
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
os: [ubuntu-latest, windows-2019, macos-13]

steps:
- uses: actions/checkout@v2
Expand All @@ -62,17 +62,18 @@ jobs:
uses: pypa/cibuildwheel@v2.4.0
env:
CIBW_BEFORE_BUILD: pip install numpy==1.19.5
CIBW_BUILD: cp36-* cp37-* cp38-*
CIBW_BUILD: cp38-*

- name: Build wheels
uses: pypa/cibuildwheel@v2.4.0
env:
CIBW_BEFORE_BUILD: pip install numpy==1.21.6
CIBW_BUILD: cp39-* cp310-*
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
CIBW_ARCHS_MACOS: x86_64 universal2

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

build_sdist:
Expand All @@ -92,10 +93,12 @@ jobs:
- name: Build sdist
run: |
python setup.py sdist
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz


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

- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
Expand Down

0 comments on commit 7bc3478

Please sign in to comment.