Skip to content

ci: minimize GitHub Actions credit usage - #9

Merged
gh-assan merged 1 commit into
mainfrom
ci/optimize-github-actions
Aug 30, 2026
Merged

ci: minimize GitHub Actions credit usage#9
gh-assan merged 1 commit into
mainfrom
ci/optimize-github-actions

Conversation

@gh-assan

Copy link
Copy Markdown
Contributor

Why

Reduce GitHub Actions credit consumption to the minimum while keeping PRs fully gated.

Changes

  • Drop the Python 3.12/3.13 matrix → single 3.12 job (~50% fewer minutes).
  • Run CI only on PRs + workflow_dispatch → no redundant full re-run on merge to main (the PR check is the gate).
  • paths-ignore for **/*.md, docs/**, LICENSE → doc-only commits don't trigger CI.
  • Build-free make ci-verify in CI → uv build stays in local ci-check but is skipped per-PR.
  • timeout-minutes: 20 caps hung runs. Kept concurrency: cancel-in-progress + uv cache.

Net: ~75% fewer CI minutes.

Heads up

  • Main is no longer re-run on merge, so this relies on branch protection requiring the PR check. Use workflow_dispatch to run the full pipeline on main manually.
  • 3.13 is no longer covered in CI. If 3.13 support matters, a nightly schedule: run can cover it without per-PR cost.

🤖 Generated with Claude Code

- Drop the Python 3.12/3.13 matrix to a single 3.12 job (~50% fewer minutes)
- Run CI only on PRs + manual dispatch; skip redundant re-run on merge to main
- Skip doc-only changes via paths-ignore (**/*.md, docs/**, LICENSE)
- Use build-free `make ci-verify` in CI (packaging stays in local ci-check)
- Add timeout-minutes: 20 to cap hung runs

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gh-assan
gh-assan merged commit 5892d78 into main Aug 30, 2026
1 check failed
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