-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add to publish.yml test install on push #237
Conversation
I tested the CI actions locally using act and removing the Content wise, I would like a separate job with |
Sounds good, will implement soon. One thing:
for this the push:
tags: ['[0-9]+.[0-9]+.[0-9]+'] would have to be changed as well, right? I guess you don't want to git-tag differently than the pyproject version? So, push:
tags: ['[0-9]+.[0-9]+.[0-9]+[a-z]?'] ok? |
I think I have also had a look into your gridspeccer workflow again. This gave me two more ideas: (1) can we create a draft release automatically when we publish to What do you think? |
I still see one more problem (which we might just ignore). Even |
* checks git tag * creates draft release
Made a new commit, hope I included everything:
I'm not sure how easy it is to reuse the Regarding not being able to overwrite the version on test.pypi, I would just ignore that for now. If the case arises, one can always add a version number, or try to fix stuff manually. |
- remove publishing to pypi and only prepare release - fix regex - fix formatting - use full test suite - add sleep before running tests
- only run after releasing a GitHub release - uploads the assets to PyPI
I decided to just test the workflows in another repo because it wasn’t possible to test creating and publishing releases locally. This way I could iterate and eliminated some mistakes. I also added a workflow which uploads the release assets to PyPI. I had some weird errors with the automatic tests in It would be great, if you could check, whether you spot any obvious mistake. So far, my tests went quite well. |
- increase GITHUB_TOKEN permission (to set `content: read` as default) - add release body
I've gone through the changes, and it looks good. I like splitting up the release and publish part to avoid all the
I can't guarantee it works, but I didn't see any errors, let's hope for the best. |
Thank you for looking into it. To my understanding the type Have we mixed up In the current state, the workflows seem to work, see prepare-release and publish-release both tested with |
sounds good
You're correct regarding So just one thing left: on a release page in the test repo, why is there only the source code, and not the |
No, that’s my fault. I deleted all releases at some point (there were only two which were indeed released). They would be on the release page where I still see two draft releases, but you can’t see them. The assets are not listed on the tagged commits which you linked to. Even the |
Ok, then I guess everything is correct and you can submit. Thanks for the explanation. |
Responding to the second request of #235 .
Two comments:
to test it here, and adapt the
event_name
s?yalafi
folder. The alternative used in Feature install action #236 is also possible but would need some changes to the packaging. As that would be more invasive I settled forrm
for now.What do you think?