-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update github action versions #22
Conversation
The github actions also complain that
However, the very first thing the actions do is upgrade pip, so not sure why this message shows up. Hopefully it also disappears with setup-python@v5 |
I misread what github actually says. It complained that actions/setup-python@v4 and codecov/codecov-action@v3 were using node v16, not that we should upgrade to those versions. So I also upgraded codecov-action to v4, in the hope that it does not break anything. The main requirement of codecov-action v4 seems that it now requires a token to upload coverage. I believe we already use that, and otherwise we should. |
Oh, codecov-action@v4 does not work:
So we should provide a token somehow. Putting this to Draft. And perhaps the action should not be okay if it doesn't actually succeed? Or maybe that is fine since it is not critical? |
We are using tokens for codecov on some projects, but not on all AFAIK. We probably should just do that for all of them... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #22 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 7 7
=========================================
Hits 7 7 ☔ View full report in Codecov by Sentry. |
Also, perhaps we should think about how to deal with the To deal with projects that don't (and won't) use poetry: I already did some experimentation using GitHub's rather new "custom repo properties", which can be accessed from GH actions (although I never took it that far). Maybe the simplest solution would be to add a "poetry=True" property on the repos where it applies (I already did that some time ago, but need to check if it's up to date), and then let the DevOps check for that property. Ideally such that if no such property is found at all, just default to non-poetry... |
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.
Thanks for tackling this! I've seen that Node16 warning for a while, but never bothered to care 🙃
Would this work: DevOps/.github/workflows/tests.yml Line 50 in 4ab6611
|
It does work with |
Oh I didn't think about that; I'll let you decide. We can also merge this into both master and poetry for now? |
I see now a warning in e.g. skycalc_ipy (which had a token before) that the secret is overridden by a org-wide secret. Let's see if this breaks anything, but if the org-wide option work, I'd prefer that, because then we don't need to think about it everywhere... |
Probably the best option in the short run. I'm a bit too busy now to deal with the long-term option I described above, but want to do it eventually... |
- actions/setup-python@v5 updates node version from node16 to node20 - actions/checkout@v4 seems to be the standard - actions/setup-node@v4 recommends specifying a node version - codecov-action to v4 This change is prompted by github complaining that "Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, codecov/codecov-action@v3." The new codecov action requires the use of CODECOV_TOKEN
604931c
to
fd239bf
Compare
Squashed so it can be easily cherrypicked for the poetry branch |
This change is prompted by github complaining that "Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-python@v4, codecov/codecov-action@v3." E.g: https://github.com/AstarVienna/ScopeSim/actions/runs/9057582692
However, setup-python@v4 still uses node 16 apparently, so v5 is needed. Codecov-action has a v4 but that has breaking changes, so I did not want to upgrade that, as it did not seem necessary.