-
Notifications
You must be signed in to change notification settings - Fork 11
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
Refactor test matrix: most logic at top level, call reusable workflow #348
Conversation
08887dc
to
1ca0ea4
Compare
a703d7d
to
0884871
Compare
9d52fc1
to
063d847
Compare
e905b42
to
3088f87
Compare
b3f6333
to
6560d13
Compare
bae1f54
to
67ff46a
Compare
I can't find a simple way to pass around the multi-line inputs needed by setup-python. This is a bit ugly but clear, at least.
12a6cdd
to
fab9371
Compare
I'm not sure why the codacy coverage is failing to upload; I haven't changed anything related to api keys or secrets. Maybe it doesn't like the upload coming from a sub-workflow? |
The trouble with ${{ test && '' || output }} is that '' is "false-y" so it returns output even if the test fails. The return value is treated as a regex for tox env to skip, so as long as there are no matching envs we can use any string for the "run all tests" case.
secrets are not passed to reusable workflows by default
Aha, this is because secrets are not automatically passed to reusable workflows. https://docs.github.com/en/actions/sharing-automations/reusing-workflows#passing-inputs-and-secrets-to-a-reusable-workflow Here I pass the codacy token explicitly, but another option is to use |
Passing explicitly gave an error message that this one hadn't been defined in the workflow. Let's try "inherit", after all. |
All green here: https://github.com/pace-neutrons/Euphonic/actions/runs/12397959200 now to try manual dispatch... |
I hit this "random" failure on Windows:
Seems like a rare collision in practice. But an unnecessary one because the Windows tests could be running without any coverage checks! |
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.
Looks good, only issue is with the vague var if
.
Here's a random failure from coverage, having trouble with its sqlite database. I wonder if this is some kind of tox --parallel race condition that can be addressed as part of #352 https://github.com/pace-neutrons/Euphonic/actions/runs/12410831358/job/34647267908 |
Manual dispatch here is all green, I think this is good to merge? https://github.com/pace-neutrons/Euphonic/actions/runs/12410831358 |
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.
All looks sensible. LGTM.
To add salt though, I'd probably have gone with to_run
and avoided the negation.
Based on https://stackoverflow.com/a/73953210
Closes #341