-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Upload to pypi with GitHub actions #18800
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
CI Upload to pypi with GitHub actions #18800
Conversation
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.
Generally LGTM, but maybe @alfaro96 could have a look as well.
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.
Thank you @thomasjpfan for your PR!
LGTM too.
Do you mind updating the doc/developers/maintainer.rst
file to refer to the new PyPI uploading system?
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.
Let me do the following change:
@thomasjpfan out of curiosity how do you test github actions? I have a dedicated github fork of the scikit-learn repo where you forcepush your branch to the remote master? |
For most GitHub Actions, they are triggered when I push a branch to my fork. The complicated one is the |
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.
LGTM, let's merge.
I tested it (without the secrets) on my fork. I will add the token for the pypi.org site once merge so that we can give it a try for the upcoming 0.24 release candidate.
Forgot about this step will do a PR. |
Moved here from MacPython/scikit-learn-wheels#65
This PR adds a github action so we can upload with pypi through the interface.
PYPI_TOKEN
secret to enable uploading to pypi. (I already added aTEST_PYPI_TOKEN
for testpypi).pypi
in the "Run workflow" UI to upload to pypi, otherwise it will upload to testpypi by default.check_artifacts.py
script that makes sure thatwheelhouse_uploader
fetches the correctly number of artifacts based on theazure-pipeline.yml
configuration.