Skip to content

Commit

Permalink
Update wheels.yml workflow to run on release event (#40)
Browse files Browse the repository at this point in the history
* Update wheels.yml workflow to run on release event

* Retry build failure [empty]

* Try installing blas before builds

* Allow numpy w/o BLAS in builds

Ref: numpy/numpy#24703

* Fixup
  • Loading branch information
milesgranger authored Sep 21, 2023
1 parent 7cfb3bd commit 8c48256
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build and upload to PyPI

on: [push, pull_request]
on:
push:
pull_request:
release:
types:
- released
- prereleased

jobs:
build_wheels:
Expand All @@ -13,6 +19,8 @@ jobs:

env:
CIBW_SKIP: "pp*"
CIBW_ENVIRONMENT: "SETUPTOOLS_USE_DISTUTILS=stdlib"
CIBW_BEFORE_BUILD: pip install numpy --config-settings=setup-args="-Dallow-noblas=true"

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -64,9 +72,8 @@ jobs:
upload_pypi:
needs: [build_wheels, build_sdist]
if: "startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 8c48256

Please sign in to comment.