Skip to content

feat: add workflows to deploy draft PRs to TestPyPI#19817

Draft
miketheman wants to merge 7 commits into
pypi:mainfrom
miketheman:miketheman/idea-test-pypi-merge-strat
Draft

feat: add workflows to deploy draft PRs to TestPyPI#19817
miketheman wants to merge 7 commits into
pypi:mainfrom
miketheman:miketheman/idea-test-pypi-merge-strat

Conversation

@miketheman
Copy link
Copy Markdown
Member

Add two GitHub Actions workflows for managing a long-lived testpypi branch that cabotage can deploy to test.pypi.org:

  • testpypi-deploy.yml: when the deploy-to-testpypi label is added to a draft PR, merges the PR's changes into the testpypi branch and comments on the PR with the result.
  • testpypi-reset.yml: on every push to main, automatically syncs the testpypi branch to match main - unless a draft PR with the label is active. Also supports manual dispatch.

@miketheman miketheman added github_actions Pull requests that update GitHub Actions code testpypi Related to TestPyPI labels Apr 7, 2026
Add two GitHub Actions workflows for managing a long-lived `testpypi`
branch that cabotage can deploy to test.pypi.org:

- `testpypi-deploy.yml`: when the `deploy-to-testpypi` label is added
  to a draft PR, merges the PR's changes into the `testpypi` branch
  and comments on the PR with the result.
- `testpypi-reset.yml`: on every push to `main`, automatically syncs
  the `testpypi` branch to match `main` - unless a draft PR with the
  label is active. Also supports manual dispatch.

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman force-pushed the miketheman/idea-test-pypi-merge-strat branch from 00706c6 to e56bae5 Compare April 7, 2026 20:23
@miketheman miketheman marked this pull request as ready for review April 10, 2026 15:45
@miketheman miketheman requested a review from a team as a code owner April 10, 2026 15:45
@miketheman
Copy link
Copy Markdown
Member Author

@dstufft asked: How can we prevent longer drifts from main?
@JacobCoffee asked: what about database drift if they get reverted? Do we need to exclude those, or downgrade?

@miketheman miketheman marked this pull request as draft April 24, 2026 16:18
@miketheman miketheman removed the request for review from a team April 24, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code testpypi Related to TestPyPI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant