Skip to content

ci: add a dry_run input to the release workflow - #274

Merged
petercorke merged 2 commits into
mainfrom
ci/release-dry-run
Nov 23, 2026
Merged

petercorke merged 2 commits into
mainfrom
ci/release-dry-run

Conversation

@petercorke

Copy link
Copy Markdown
Owner

Adds a dry_run input 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 a release event has no inputs, so it always publishes.

This is step 2.3 of the ecosystem CI plan (a dry_run input that runs every job except upload_pypi), without the other part of that step, merging release-please.yml into 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.yml has the same shape and no dry_run either; 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

petercorke and others added 2 commits November 24, 2026 08:44
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>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@petercorke
petercorke merged commit 0327ade into main Nov 23, 2026
32 checks passed
@petercorke
petercorke deleted the ci/release-dry-run branch November 23, 2026 23:12
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.

1 participant