Repository navigation
Build release artifacts once, in their own jobs - #156
Open
Jim Garrison (garrison) wants to merge 1 commit into
Open
Jim Garrison (garrison) wants to merge 1 commit into
Jim Garrison (garrison) wants to merge 1 commit into
Conversation
Adopt the multi-stage release workflow already used by qiskit-addon-utils, qiskit-addon-sqd, qiskit-mitigation and coheriq. The sdist and wheel are built in dedicated jobs and uploaded as artifacts; the github and pypi jobs download them rather than rebuilding. PyPA's guidance is to keep the build job separate from the publishing jobs, which should only download already-built artifacts and upload them. This also means what is attached to the GitHub release is byte-for-byte what is uploaded to PyPI, and that a push to main or a stable branch exercises the build without publishing anything. The publish jobs are gated on refs/tags/. Assisted-by: Claude Opus 5
Coverage Report for CI Build 40030604722Coverage remained the same at 100.0%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Jim Garrison (garrison)
marked this pull request as ready for review
October 24, 2026 00:33
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopts the multi-stage
release.ymlalready in use byqiskit-addon-utils,qiskit-addon-sqd,qiskit-mitigationandcoheriq. The sdist and wheel are each built in their own job and uploaded as artifacts; thegithubandpypijobs download those artifacts instead of rebuilding from a fresh checkout. PyPA's guidance is to keep the build job separate from the publishing jobs, which "should only download the already-built artifacts and upload them."Effects:
mainorstable/**builds both distributions without publishing; both publish jobs are gated onstartsWith(github.ref, 'refs/tags/').This package builds a single universal (
py3-none-any) wheel, sobuild_wheelsneeds no platform matrix.This pull request was drafted by Claude Opus 5 under my guidance.