Repository navigation
CI: publish to PyPI on release only - #12
Merged
Merged
Conversation
New pypi.yml runs on release: published. It fails if the tag differs from the package version, runs ruff and tests, builds, twine check --strict, then uploads via PyPI trusted publishing (OIDC, environment "pypi", no stored token).
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
dev/institutional-recovery was merged in #4 and deleted; all work lands on main.
Merged
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.
Adds
.github/workflows/pypi.yml. It runs only when a GitHub Release is published, never on a push or a PR.build job:
v0.1.1) doesn't match both thepyproject.tomlversion andverdi.__version__.twine check --strict.publish job:
pypienvironment.One-time setup on PyPI (needs a project owner):
SimulaMet, repositoryVerdi, workflowpypi.yml, environmentpypi.Also adds a short Releasing section to the README.
Test plan
releaseonly; jobsbuild→publish.v0.1.0passes andv0.1.1fails, as expected while the version is 0.1.0.twine check --strictpasses on the 0.1.0 build.Also:
ci.ymlnow runs formainonly. The staledev/institutional-recoveryentry is removed; that branch was merged in #4 and deleted.