Bump pypa/cibuildwheel from 2.18.0 to 2.18.1 #153
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wheels | |
on: | |
pull_request: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
build_bdist: | |
name: "Build ${{ matrix.os }} (${{ matrix.arch }}) wheels" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-22.04", "windows-2022", "macos-14"] | |
arch: ["x86_64", "arm64", "AMD64"] | |
exclude: | |
- os: ubuntu-22.04 | |
arch: arm64 | |
- os: ubuntu-22.04 | |
arch: AMD64 | |
- os: windows-2022 | |
arch: arm64 | |
- os: windows-2022 | |
arch: x86_64 | |
- os: macos-14 | |
arch: AMD64 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Building ${{ matrix.os }} (${{ matrix.arch }}) wheels" | |
uses: pypa/[email protected] | |
env: | |
# Skips pypy and musllinux for now. | |
CIBW_SKIP: "pp* cp36-* cp37-* cp38-* *-musllinux*" | |
CIBW_ARCHS: ${{ matrix.arch }} | |
CIBW_BUILD_FRONTEND: build | |
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 | |
CIBW_TEST_REQUIRES: pytest pandas>=2 | |
CIBW_TEST_COMMAND: > | |
python -c "import gsw; print(f'gsw v{gsw.__version__}')" && | |
python -m pytest --pyargs gsw | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pypi-artifacts-${{ matrix.os }}-${{ matrix.arch }} | |
path: ${{ github.workspace }}/wheelhouse/*.whl | |
show-artifacts: | |
needs: [build_bdist] | |
name: "Show artifacts" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: pypi-artifacts* | |
path: ${{ github.workspace }}/dist | |
merge-multiple: true | |
- shell: bash | |
run: | | |
ls -l ${{ github.workspace }}/dist | |
publish-artifacts-pypi: | |
needs: [build_bdist] | |
name: "Publish to PyPI" | |
runs-on: ubuntu-22.04 | |
# upload to PyPI for every tag starting with 'v' | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: pypi-artifacts* | |
path: ${{ github.workspace }}/dist | |
merge-multiple: true | |
- uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_PASSWORD }} | |
print_hash: true |