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
Revert "Fix github actions for non-release tags" #236
Conversation
Codecov Report
@@ Coverage Diff @@
## master #236 +/- ##
=======================================
Coverage 87.33% 87.33%
=======================================
Files 43 43
Lines 1943 1943
=======================================
Hits 1697 1697
Misses 246 246
Continue to review full report at Codecov.
|
Cool.
So - we should decide on a workflow that will work for us.
Personally, I don't mind which it will be. |
I much prefer 2, as a great many people have write access to this repo, and just pushing a versioned tag to their own branch will lead to a PyPI release, which potentially runs on many servers, who are potentially automatically updating dependencies... etc. |
I also vote for the second option. There needs to be step that initiated only for a release so it doesn't accidentally happen. |
If they first change the |
All right! I'll push the solution for option number 2 to this PR, after I have tested it a bit in my fork first 👍 |
What do you mean? I managed to make a release off my own personal branch without changing anything |
Ah! Hmm... yeah okay - from a PR then? I guess the |
On another note, related to my "conclusions" above. It should be considered bad practice to create and push a tag on a PR commit, before the PR is merged. Since, if the PR is squashed and merged or rebased and merged, the tag will persist, but point to a non-historical/-existing commit. |
After merging this, we can test it by releasing the v0.7.1 tag on GitHub? Unless we want to actually set it to point to this PR instead? Edit: I have just deleted the test release for v0.7.1. I think I would suggest we also remove the v0.7.1 tag and recreate it for the latest commit here? |
e6cce63
to
b85bb95
Compare
A python script checks the validity of the release metadata, i.e., if the tag matches "vMAJOR.MINOR.PATCH", extras after PATCH are not allowed, and the version _must_ be prefixed by "v". Furthermore, it checks that the released tag points to a commit in the `master` branch. If nothing of these things are true, it will stop the publish on PyPI workflow and one should delete the release from GitHub.
b85bb95
to
d2e1fba
Compare
@shyamd do you approve my commit? Then I'll approve on your behalf and we can merge :) |
I approve of this PR. |
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.
Approved on behalf of @shyamd
Reverts #235