Add twine check to GitHub Actions#59291
Add twine check to GitHub Actions#59291Ch3LL merged 10 commits intosaltstack:masterfrom ScriptAutomate:twine-check
Conversation
|
you probably want the depth on the git checkout to include at least the last tag since salt creates different file names and version based on the last tag it finds. It would also be good to cache the pip stuff in case pypi has issues and to lighten the load on pypi in general, maybe something like this: espressif/esptool@c325e36 it might be better to cache an entire virtual environment so pypi doesn't have to be up at all for it to work. |
|
@ScriptAutomate where you able to see @bryceml 's comments? Would be great to get this one in for Aluminium. |
Great idea, @bryceml. That's for GitLab CI, so I poked around for how people approach this via GitHub Actions, and found a good write-up by Evan Pete Walsh / @epwalsh over at AI2: Tested out, and seems to work well! I also did the following:
Also, the PR blocking this PR has been merged, and Twine checks pass against master! So, this PR is officially ready for review. |
What does this PR do?
Runs
twine checkagainst PRs to ensure nothing is breaking.What issues does this PR fix or reference?
Adds automated check suggested in #58727
Previous Behavior
No
twine checkwas being done, so changes to something likeREADME.rstcould preventtwinefrom later publishing to PyPi further down the pipeline for a release.New Behavior
twine checkis now done against each PR, to ensure no PyPi publishing issues related totwine checkhappen at release.Commits signed with GPG?
Yes
Additional Notes
This PR is dependent should only be merged once #59289 is merged, as that PR fixes the current problem with
twine checkfailing against theREADME.rstfile.