Skip to content

ci: run the shared publish gates before the PyPI upload - #14

Merged
NaNIsaac merged 1 commit into
mainfrom
ci/publish-gates
Nov 16, 2026
Merged

NaNIsaac merged 1 commit into
mainfrom
ci/publish-gates

Conversation

@NaNIsaac

Copy link
Copy Markdown
Owner

publish.yml now calls the shared publish-gates.yml from NaNIsaac/.github, pinned to commit 284b0786020434df16b096a3e11c56c6331dd81f, before the upload. The upload stays in this file with the release environment, so the PyPI Trusted Publisher registration is unchanged.

  • gates job: build the sdist and wheel once, run uv run pytest -q, scan the built files for credential file names, files over 5 MB, home-folder paths and secrets, and install the wheel alone in a clean venv, import roi_rectangle and compare the installed version with the expected one.
  • publish job: needs gates, runs only on a v* tag, keeps the tag-matches-pyproject check, and uploads the files the gates checked (artifact publish-gates-dist) instead of building again.
  • workflow_dispatch runs the gates alone, with no upload. Off a tag the install check compares with the pyproject version instead of the tag.

GitHub only offers workflow_dispatch for a workflow file on the default branch, so the gates-only run can be started once this is on main: gh workflow run publish.yml -R NaNIsaac/roi_rectangle.

local-ci: 8c964b6 | uv sync --locked, uv run pytest -q: 34 passed; the pinned gates' leak checks on a local 1.1.0 build: no findings | the workflow itself not run (dispatch needs the file on main)

Part of: PUBLISH-GATES-ROLLOUT

@NaNIsaac
NaNIsaac merged commit 233e20e into main Nov 16, 2026
11 checks passed
@NaNIsaac
NaNIsaac deleted the ci/publish-gates branch November 16, 2026 17:08
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