Repository navigation
ci: release automatically through core's release workflow - #2586
Merged
Merged
Conversation
Replaces the label-driven bump_version workflow and its bump PRs: each squash merge that changes a non-plugin file releases at the level its PR title gives. Depends on brain-score/core#180.
KartikP
marked this pull request as ready for review
October 9, 2026 10:20
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.
Makes vision releases fully automatic, using the shared workflows added in brain-score/core#180.
Depends on brain-score/core#180. Both workflows here call
brain-score/core/.github/workflows/*.yml@main, which do not exist until that PR merges. Do not merge this first. The human setup steps (GitHub App, org secrets,pypienvironment, ruleset, PyPI trusted publisher) are in the setup guide and are not part of this PR.Changes
release.yml(new): on each push tomaster, calls core's reusable release workflow withrelease-paths: ^brainscore_vision/(?!(models|benchmarks|data|metrics)/), so plugin-only merges never release. The PR title type picks the level (featminor,fix/perfpatch, major only with!orBREAKING CHANGEplus themajor updatelabel). The PyPI publish job runs in this file, because PyPI trusted publishing does not work inside a reusable workflow. A manual Run workflow with alevelinput cuts the first release.pr-title.yml(new): calls core's PR-title check; it comments on a bad title with the allowed types.bump_version.ymldeleted (already disabled; its last runs failed in June). Its secretsAPPROVAL_TOKENandWORKFLOW_AUTOMERGEcan be deleted after merge.pyproject.toml:[tool.bumpversion]replaced by[tool.semantic_release].docs/source/modules/version_bumping.rstdescribes the new process.Starting version
PyPI has 2.3.22,
pyproject.tomlsays 2.3.22, and the tagv2.3.23exists on an unmerged bump branch but was never published. python-semantic-release takes the highestvX.Y.Ztag in the repository, even one not onmaster, so the next versions are 2.3.24 (patch) or 2.4.0 (minor); it never re-createsv2.3.23. Tested locally with python-semantic-release 10.7.0 on a scratch repo with the same tag layout. Recommended first release: manual run with level minor, giving 2.4.0 (master has 127 commits since 2.3.22, including new helpers). 2.3.23 stays a gap on PyPI.