-
Notifications
You must be signed in to change notification settings - Fork 406
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
Create GitHub Action to automatic publish to PyPI #411
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## next #411 +/- ##
=======================================
Coverage 90.07% 90.07%
=======================================
Files 2 2
Lines 262 262
=======================================
Hits 236 236
Misses 26 26 ☔ View full report in Codecov by Sentry. |
63797a5
to
a86afeb
Compare
add workflow for automatic deploy on pypi
a86afeb
to
c0ec937
Compare
@alan-barzilay I just rebased this branch with |
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.
@fredgrub what about updating the package version?
- When the version field of `pyproject.toml` changes, after the changes have been committed, a tag is created with `git tag` that refers to the new version. - It's necessary to configure the `git-hooks' directory `git config core.hooksPath .git-hooks`.
bc9f493
to
a88d1f1
Compare
I will be closing this PR. I ended up using it as tests and the commit history is quite disorganized. I will leave it as validation of the correctness of the workflow. |
This branch is a continuation of PR #408 and was rebased from the one proposed on #409, so it has to wait to be merged into
next
. So I'll leave it as a draft.You can check out a working version of it on https://github.com/pipreqsxp/pipreqs/actions/runs/6723169654 and the result of the release on https://test.pypi.org/project/pipreqs-build-test/.
For it to work on the main repository, you should configure the API token from PyPI on GitHub (check https://docs.github.com/pt/actions/security-guides/using-secrets-in-github-actions).