bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.
Apache License 2.0
6.38k stars 388 forks source link

Create GitHub Action to automatic publish to PyPI #411

Closed fredgrub closed 10 months ago

fredgrub commented 11 months ago

This branch is a continuation of PR https://github.com/bndr/pipreqs/pull/408 and was rebased from the one proposed on https://github.com/bndr/pipreqs/pull/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).

codecov-commenter commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (fb4560c) 90.07% compared to head (a88d1f1) 90.07%. Report is 1 commits behind head on next.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #411 +/- ## ======================================= Coverage 90.07% 90.07% ======================================= Files 2 2 Lines 262 262 ======================================= Hits 236 236 Misses 26 26 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

fredgrub commented 11 months ago

@alan-barzilay I just rebased this branch with next and it's ready to be merged.

fredgrub commented 10 months ago

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.