You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The release workflow decides from the tag which version is released, whether it is a prerelease (a/b/rc), and which image tags are set (#126). This logic is inline bash in .github/workflows/release.yaml and untested; a mistake would hit the release itself (e.g. a wrong latest tag or prerelease flag). Found in the v0.3.0 pre-release review.
How?
Move the logic into a small, typed, documented Python script (e.g. scripts/release_version.py), called by the workflow; outputs as GITHUB_OUTPUT lines.
Test it with pytest over a table of tags: v0.3.0, v0.3.0rc1, v1.0.0b2, v1.0.0a1, invalid tags (no v, local versions, garbage), and the image tags and prerelease flag for each.
Keep the workflow's behaviour identical for valid tags.
Acceptance criteria
The workflow uses the script; tests cover every branch (100% coverage).
Release behaviour is unchanged for valid tags; invalid tags fail clearly.
Activity
ci: version links in the packaged chart (#161)