Skip to content

Reduce CI minutes for Test workflow - #354

Merged
aarmey merged 1 commit into
mainfrom
reduce-ci-minutes
Dec 2, 2026
Merged

aarmey merged 1 commit into
mainfrom
reduce-ci-minutes

Conversation

@aarmey

@aarmey aarmey commented Dec 2, 2026

Copy link
Copy Markdown
Member

Why

cccRISE was the top consumer of Actions billed minutes in Nov 2026 (~975 min), almost all from the Test workflow running the full suite (~2 min) on every push to every branch (e.g. 35 pushes on one editing branch).

Changes (.github/workflows/test.yml)

  • Trigger on pull_request and pushes to main instead of every push to every branch.
  • concurrency with cancel-in-progress so a newer commit cancels the stale run.
  • paths-ignore for manuscript/**, *.md, *.qmd, *.rst so doc-only changes skip tests.
  • setup-uv enable-cache keyed on uv.lock.

Notes

  • Branches without an open PR no longer get CI; open a (draft) PR to get tests.
  • main has no branch protection / required checks, so skipped runs via paths-ignore won't block merging. If a required check is added later, revisit paths-ignore.
  • Not changed: coverage/test speed (the tests are ~90% of each run) and the documentation workflow (main-only, ~1 min).

🤖 Generated with Claude Code

…he uv

Run Test on pull requests and pushes to main only (not every branch push),
cancel in-progress runs superseded by a newer commit, skip runs that only
touch manuscript/markdown/rst files, and enable setup-uv caching keyed on uv.lock.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@aarmey
aarmey merged commit 58c2f68 into main Dec 2, 2026
1 check passed
@aarmey
aarmey deleted the reduce-ci-minutes branch December 2, 2026 15:03
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