diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 288a4bf..bf65581 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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 @@ -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 @@ -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: @@ -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 @@ -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: