-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add github action to build and publish wheels #517
Conversation
86efe67
to
9dc6c8f
Compare
Codecov Report
@@ Coverage Diff @@
## main #517 +/- ##
=======================================
Coverage 94.22% 94.22%
=======================================
Files 16 16
Lines 797 797
=======================================
Hits 751 751
Misses 46 46 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job.
.github/workflows/build_wheels.yml
Outdated
@@ -0,0 +1,54 @@ | |||
name: Build and upload to PyPI | |||
|
|||
on: [push, pull_request] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we really need to do this on every push? It's about 30 minutes of building wheels and we use the resources for free.
I'm leaning towards building for every pull request and release.
Did you know that github action can be triggered on release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't know that about releases - will add.
Agree, we could be more conscientious of the generous free resources github actions is allowing us to use - will change to run on PR and release.
Adds a Github Actions workflow to build and optionally publish binary artifacts for major operating systems and Python versions using
cibuildwheel
.The action very much follows the example from the cibuildwheel docs - https://cibuildwheel.readthedocs.io/en/stable/setup/#github-actions
The publish step only runs when it sees a tag that starts with
v
- then this step will publish all the artifacts to pypi. Note there is already a repository secret in this github repo with a tightly scoped PYPI api token that is allowed to upload packages for just anonlink.You can see the working Github Action here.
I suggest removing the azure build wheel steps - I can do that in this PR if you like?