update metadata for release supporting Numpy 2.0 (#280) #8
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: Wheel building | |
on: | |
pull_request: | |
# We also want this workflow triggered if the 'Build all wheels' | |
# label is added or present when PR is updated | |
types: | |
- opened | |
- synchronize | |
- labeled | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
test_wheel_building: | |
# This ensures that a couple of targets work fine in pull requests | |
permissions: | |
contents: none | |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1 | |
if: (github.repository == 'spacetelescope/spherical_geometry' && github.event_name == 'pull_request') | |
with: | |
upload_to_pypi: false | |
upload_to_anaconda: false | |
test_extras: test | |
test_command: pytest -p no:warnings --pyargs spherical_geometry.tests -v | |
targets: | | |
- cp39-manylinux_x86_64 | |
build_and_publish: | |
# This job builds the wheels and publishes them to PyPI for all | |
# tags. For PRs with the "Build wheels" label, wheels are built, | |
# but are not uploaded to PyPI. | |
permissions: | |
contents: none | |
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@v1 | |
if: (github.repository == 'spacetelescope/spherical_geometry' && (github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'Build wheels'))) | |
with: | |
# We upload to PyPI for all tag pushes | |
upload_to_pypi: ${{ startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' }} | |
# BUG: https://github.com/spacetelescope/spherical_geometry/issues/244 | |
# BUG: https://github.com/spacetelescope/spherical_geometry/issues/245 | |
test_extras: test | |
test_command: pytest -p no:warnings --pyargs spherical_geometry.tests -v | |
targets: | | |
# Linux wheels | |
- cp3*-manylinux_x86_64 | |
- cp3*-musllinux_x86_64 | |
# FIXME: https://github.com/spacetelescope/spherical_geometry/issues/247 | |
#- cp3*-manylinux_aarch64 | |
# MacOS X wheels - we deliberately do not build universal2 wheels. | |
# Note that the arm64 wheels are not actually tested so we | |
# rely on local manual testing of these to make sure they are ok. | |
- cp3*macosx_x86_64 | |
- cp3*macosx_arm64 | |
# Windows wheels | |
- cp3*win32 | |
- cp3*win_amd64 | |
secrets: | |
pypi_token: ${{ secrets.PYPI_TOKEN }} |