-
Notifications
You must be signed in to change notification settings - Fork 18
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
GitHub actions: Create release.yml #68
Conversation
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
=======================================
Coverage 95.89% 95.89%
=======================================
Files 12 12
Lines 536 536
=======================================
Hits 514 514
Misses 22 22
Continue to review full report at Codecov.
|
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.
I have left a few comments.
Can you try to push a tag in your fork to check that it triggers the workflow and that everything goes well? Normally, everything should pass and the last step with pushing to pypi should be skipped. |
I did. It fails, but at the same point as for So is that sufficient? For the moment I dropped automatic writing of the version, because we have the version in |
Maybe we could stick with manually setting the version in release_info.py, but do a check in the github action that the version in the file (can be read as |
Yes, what I have experimenting with updating the version is not great and it can be done manually as you suggest. There is an setuptools-scm which seems to be worth considering, but even if these things have changed fluid in the last few years, maybe it has now converged to something useful?! In case of https://github.com/jlaehne/lumispy/runs/2249602259?check_suite_focus=true, this is failing at the very beginning when creating the github release and according to error message, the release already exists:
Is it possible that it already exists from a previous run with the same tag? |
I tried with new tag, but the same: https://github.com/jlaehne/lumispy/actions/runs/711368311 |
I am not sure which branch I should be looking at, the one in |
I did the following:
and it works fine: https://github.com/ericpre/lumispy/actions/runs/711407096 |
This should be the issue: a git tag and a github release are two different things: https://docs.github.com/en/github/administering-a-repository/about-releases. I think that the most interoperable way is to create "git tag" manually instead of creating the github release manually. |
We still need to decide how to track the |
@ericpre Do you have an idea how to simply verify that the version in |
34a0cde
to
c126e2b
Compare
In hyperspy, this is annoying because there is more traffic and a number of PRs take more time to get merged, which is the source of conflict of the change log...
As mentioned above, I would check if setuptools-scm can be useful for that. |
Let me know if you need any help with this. |
In principle the action is running. I was trying to add a consistency check between the version in the tag and the version in Concerning the changelog, there is the solution proposed by @ericpre using Just had a look at pyxem and they simply do all that manually. So how about keeping these as nice to have features for the future if one of us finds the time to dig deeper? Then we can focus on adding other functionalities for the moment. |
I'm happy with not worrying too much on this. |
Yes, this is good idea to check that there is no mistake in the version... I would write a python script comparing the tag, which is available as environment variable and compare it with the Regarding the changelog, it can indeed be done manually! |
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.
This looks good to me. I ran a workflow in https://github.com/ericpre/lumispy/actions/runs/711407096 and it went through until the end. The only thing left to check is if the secrets are set correctly for pypi and there is no other way than actually doing it! If it fails, this is not a big deal, just need to delete the tag and the github release and make sure if there are correct and try it again.
What do you mean by "another way to store the secrets"? Isn't the Github way the correct way? |
In principle it should work like that and I will give it a try as soon as I find a quiet moment, maybe later this week. There is just a bit of other stuff that has piled up over the easter holidays.
Once everything is in, I will do the next minor realease to test the workflow. |
Yes, setting the github secrets is good, but since this is not possible to check after there have been set and it is always possible to have a typo or a mistake in the the copy and paste, etc. For example, it happen to me recently! |
* test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * test version * add changelog * add changelog
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
==========================================
- Coverage 95.89% 95.52% -0.38%
==========================================
Files 12 12
Lines 536 536
==========================================
- Hits 514 512 -2
- Misses 22 24 +2
Continue to review full report at Codecov.
|
Release workflow runs through when version is correct: https://github.com/jlaehne/lumispy/actions/runs/783664680 |
@jordiferrero should be ready now, though I do not know why the tests of the |
Indeed, the failure are related to changes in the ValueError: The size of the navigation_shape for the kwarg shift (<(100,)> must be consistent with the size of the mapped signal <(10, 10)> This point out to an argument which doesn't have the right shape. It is fairly likely that ambiguous usage of |
OK, I created a separate issue #75 for the failing tests. This one should be ready then. |
By the way, I just registered lumispy.org, which forwards to this repository for the moment, but can be later used as link for the documentation. |
Description of the change
Setting up the github actions to automate releasing when a new release tag is pushed. Based on hyperspy's
release.yml
.Progress of the PR
hyperspy_gui_ipywidgets
,releasing_guide.md
to have the recipe for a release summarized,release_info.py
,