Skip to content
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

Fix publish workflow #129

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Fix publish workflow #129

merged 1 commit into from
Apr 11, 2024

Conversation

webbnh
Copy link
Contributor

@webbnh webbnh commented Apr 11, 2024

Changes introduced with this PR

This PR fixes a breakage introduced in #120 in which the publish job in the CI workflow tries to reference the build artifact using one of the matrix values, but these are only valid in the build job. This problem only occurs when building tagged commits, e.g., for releases.

This PR references vars.ARCALOT_PYTHON_VERSION instead, so that we have a single, consistent source of truth for the version of Python that we support. This PR also changes direct references to 3.9 in the build workflow (e.g., in the matrix list and in the conditional around producing the coverage data) to use the variable, as well. Also, this PR adds a conditional around uploading the coverage data, so that we do it only once.


By contributing to this repository, I agree to the contribution guidelines.

@webbnh webbnh self-assigned this Apr 11, 2024
@webbnh webbnh force-pushed the fix-publish-workflow branch from 4b612d9 to e3148e2 Compare April 11, 2024 20:05
@webbnh webbnh force-pushed the fix-publish-workflow branch from e3148e2 to 6830059 Compare April 11, 2024 20:08
@webbnh webbnh marked this pull request as ready for review April 11, 2024 20:13
@webbnh
Copy link
Contributor Author

webbnh commented Apr 11, 2024

The new workflow works for both the PR path and the tag path (and, because they both referenced the same commit, all of their statuses are in the "checks" for the PR 🙃).

.github/workflows/build.yml Show resolved Hide resolved
@webbnh webbnh merged commit 7ba0285 into main Apr 11, 2024
8 checks passed
@webbnh webbnh deleted the fix-publish-workflow branch April 11, 2024 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants