Skip to content

chore: streamline CI triggers, docs-only skip, venv cache, version-gated publish - #7

Merged
sjwan01 merged 1 commit into
mainfrom
chore/improve-ci
Aug 8, 2026
Merged

chore: streamline CI triggers, docs-only skip, venv cache, version-gated publish#7
sjwan01 merged 1 commit into
mainfrom
chore/improve-ci

Conversation

@sjwan01

@sjwan01 sjwan01 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

Streamlines the CI and publish workflows to eliminate noise and waste:

ci.yml

  • push narrowed to branches: [main] — feature-branch pushes are covered by pull_request, so the same commit no longer runs CI twice; tags no longer trigger CI.
  • paths-ignore for docs-only changes (**/*.md, LICENSE) — documentation PRs skip the full matrix entirely. .github/ is deliberately NOT ignored (CI changes must be verified by CI).
  • actions/cache for the venv (key: python version + pyproject.toml hash, with restore-keys) — make bootstrap goes from minutes to seconds on cache hit.

publish.yml

  • A "Check version changed" step gates the whole flow: a merge to main without a version bump (e.g. docs) skips bootstrap/check/build/twine/upload. Version-changing merges and manual workflow_dispatch runs run the full flow. skip-existing remains as a second guard on TestPyPI.

Behavior after merge

  • PR: CI runs (re-runs on each push to the branch).
  • Merge to main: CI runs (merged state).
  • Version-changing merge: publish runs full flow → TestPyPI.
  • Docs-only merge: no CI, publish triggers but skips everything except the version check.
  • Tag push: no CI, no publish.

@sjwan01
sjwan01 merged commit b2400bd into main Aug 8, 2026
4 checks passed
@sjwan01
sjwan01 deleted the chore/improve-ci branch August 8, 2026 18:15
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