-
Notifications
You must be signed in to change notification settings - Fork 6
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
COMP: Update GitHub actions for publishing to PyPI #136
Conversation
@@ -66,7 +66,7 @@ jobs: | |||
steps: | |||
- uses: actions/checkout@master | |||
- name: Set up Python "3.9" | |||
uses: actions/setup-python@v1 | |||
uses: actions/setup-python@v2 |
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.
Is there a reason not to jump all the way to the latest version? v5 exists, for instance.
In other projects, we use dependabot to update actions.
And, I'll note that the pypi-publish action recommends a version of release/v1 rather than master.
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.
I was aiming for the minimal change that works, to minimize the chance of breaking something else. Though, if v5
is expected to be backward compatible ... I'll make that change.
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.
In other projects, we use dependabot to update actions.
I don't know anything about how to do that. If that is something you can do in your sleep, that'd be great! Otherwise, I'd appreciate your opinion on the relative importance of pursuing that.
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.
You add a dependabot config file in the .githib folder (see https://github.com/DigitalSlideArchive/superpixel-classification/blob/main/.github/dependabot.yml as an example -- you can just copy that). Then on some schedule if there are updates to the actions, dependabot will make PRs.
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.
I have added .github/dependabot.yml
as a copy of the one from DigitalSlideArchive/superpixel-classification
.
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.
And, I'll note that the pypi-publish action recommends a version of release/v1 rather than master.
Thank you. Done.
One way to mostly test this without merging would be to have another step in the workflow that would publish to test pypi ( |
c2aa329
to
34f8f59
Compare
34f8f59
to
d4525f9
Compare
9654ae3
to
986b25e
Compare
6f90b2e
to
3567c12
Compare
Thank you, I have added that. Let's see how it goes. |
Unfortunately, publishing to if: github.event.repository.fork == false in the new workflow. The error is:
|
Actually, the publishing action to |
@manthey What do you think?: Possibly after removing the just added |
Yes, give it a try. |
The reason that the GitHub action to publish to PyPI was failing was not the above but more mundane; failure to update the |
GitHub gave errors about publishing HistomicsStream
2.5.0
. I am hoping that bumpingactions/setup-python@v1
toactions/setup-python@v2
in.github/workflows/build-test-package.yml
will be sufficient to fix the problem, but I don't know how to test that other than merging this pull request and attempting to make a2.5.1
release via GitHub.