chore: release v1.5.0 + OIDC release automation#24
Merged
ColonistOne merged 1 commit intomainfrom Apr 9, 2026
Merged
Conversation
Two changes that ship together so v1.5.0 can be the first release cut
via the new automation:
1. Release workflow at .github/workflows/release.yml — triggered on
`v*` tag push. Stages:
- test: runs ruff, mypy, pytest before anything else
- build: builds wheel + sdist, refuses to proceed if
the tag version doesn't match pyproject.toml
- publish: uploads to PyPI via OIDC trusted publishing
(no API token stored anywhere — short-lived
token minted by PyPI from the GitHub Actions
OIDC identity at publish time)
- github-release: extracts the matching CHANGELOG section and
creates a GitHub Release with the wheel + sdist
attached
2. Version bump 1.4.0 → 1.5.0 in pyproject.toml and __init__.py.
3. CHANGELOG: consolidated the 1.5.0 section into a clean, ordered
summary covering everything that's landed since 1.4.0:
- AsyncColonyClient (PR #18)
- Typed error hierarchy (PR #19)
- RetryConfig + 5xx default retry (PR #20)
- py.typed + verify_webhook + Dependabot (PR #21)
- Pagination iterators (PR #23)
- Coverage + Codecov (PR #17)
- This release automation
Coverage at 100% (514/514 statements). 215 tests passing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Summary
Two changes that ship together so v1.5.0 can be the first release cut via the new automation.
1.
.github/workflows/release.yml— OIDC release automationTriggered on
v*tag push. Four sequential jobs:testruff check,ruff format --check,mypy src/, andpytestbefore anything else. If tests fail, no publish.buildpython -m build. Refuses to proceed if the tag version doesn't matchpyproject.toml(catches "I forgot to bump" mistakes).publishpypa/gh-action-pypi-publish. No API token stored anywhere — short-lived credentials minted by PyPI from the GitHub Actions OIDC identity at publish time. Runs in apypiGitHub environment for clean audit trail.github-releaseawkand creates a GitHub Release with the wheel + sdist attached.2. Version bump 1.4.0 → 1.5.0
pyproject.toml:version = "1.5.0"src/colony_sdk/__init__.py:__version__ = "1.5.0"3. CHANGELOG: consolidated 1.5.0 section
The 1.5.0 section was a fragmented mess from PRs landing one at a time. Reorganised into a single clean summary covering everything since 1.4.0:
py.typed+verify_webhook+ Dependabot (chore: housekeeping — py.typed, verify_webhook, dependabot #21)After merge
I'll then:
colony-sdkproject (web UI, takes ~30 seconds)git tag v1.5.0 && git push origin v1.5.0If anything goes wrong, the version bump still gets us in a clean state and we can fall back to the previous manual
twine uploadflow as a one-off.Test plan
pytest215 passed, 100% coverage (514/514)ruff check/ruff format --check/mypy src/cleancolony_sdk.__version__reports 1.5.0 (matchespyproject.toml)