Repository navigation
ci: add a dry_run input to the release workflow - #274
Merged
Merged
Conversation
A manual run with dry_run ticked builds the sdist and wheel and smoke-tests the wheel, but skips the PyPI upload, so the release path can be checked without a release. A release event is unchanged: it always publishes. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
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 a
dry_runinput to the release workflow, so the release path can be checked without making a release.A manual run of
release.yml(Actions, "Run workflow") now has a "Dry run" tick box. With it ticked the workflow builds the sdist and wheel and smoke-tests the wheel, and skips the "Publish to PyPI" job. The smoke-test job adds a line to the run summary saying that it was a dry run. The tick box is off by default, so a manual run publishes as it does today, and areleaseevent has no inputs, so it always publishes.This is step 2.3 of the ecosystem CI plan (a
dry_runinput that runs every job exceptupload_pypi), without the other part of that step, mergingrelease-please.ymlinto this file.What I ran. I dispatched the workflow from this branch with the box ticked (run 45282541479): "Verify tag matches package version", "Build sdist and wheel" and "Smoke-test wheel" succeeded, and "Publish to PyPI" was skipped. I did not run a real release or an unticked dispatch, so the publishing path itself is checked only by reading the condition:
github.event_name != 'workflow_dispatch' || !inputs.dry_run.Not changed: bdsim's
release.ymlhas the same shape and nodry_runeither; that would be a PR of its own.AI-assisted: written with Claude Code (Claude Sonnet 5.5) and reviewed by the maintainer.
🤖 Generated with Claude Code