Repository navigation
Decouple production PyPI publishing from TestPyPI - #15
Merged
MrGeislinger merged 1 commit intoNov 25, 2026
Merged
Conversation
- publish-pypi now only needs test-and-build, so tpu-info-v* tag releases go straight from test-and-build to OSS Exit Gate. - publish-testpypi is skipped unless the repository variable ENABLE_TESTPYPI_PUBLISH is "true", until a TestPyPI Trusted Publisher can be added for tpu-info. - Manual workflow_dispatch runs are now dry runs: test-and-build runs and uploads the tpu-info-dist artifacts; nothing is published. - ci.yml also runs on changes under .github/workflows/, so workflow-only PRs run CI.
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
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.
Description
publish-pypicurrently waits forpublish-testpypi, but a Trusted Publisher can't be added ontest.pypi.org/project/tpu-infoyet. That means atpu-info-v*tag release could never reach OSS Exit Gate. This PR removes that dependency.Changes
release.ymlpublish-pypinow only needstest-and-build, so tag releases go straight fromtest-and-buildto OSS Exit Gate.publish-testpypiis skipped unless the repository variableENABLE_TESTPYPI_PUBLISHistrue. Once TestPyPI ownership is reclaimed and a Trusted Publisher is added, it can be re-enabled without a code change.workflow_dispatchruns are now dry runs:test-and-buildruns and uploads thetpu-info-distwheel and sdist as workflow artifacts. Nothing is published.ci.yml: also triggers on changes under.github/workflows/**, so workflow-only PRs run CI.Job behavior
test-and-buildpublish-testpypipublish-pypiworkflow_dispatchonmaintpu-info-v*tag pushTesting
release.ymlviaworkflow_dispatch(run):test-and-buildpassed: unit tests, build,twine check, wheel smoke test, and Cloud TPU runtime check.publish-testpypiandpublish-pypiwere skipped as expected.tpu-info-distartifact (wheel and sdist) was uploaded.mainto confirm the merged result.