Skip to content

ci: reduce runner costs — Linux-first matrix with targeted cross-platform spot-checks - #53

Open
harell wants to merge 1 commit into
masterfrom
ci/reduce-runner-costs
Open

ci: reduce runner costs — Linux-first matrix with targeted cross-platform spot-checks#53
harell wants to merge 1 commit into
masterfrom
ci/reduce-runner-costs

Conversation

@harell

@harell harell commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Context — GitHub Actions cost reduction

The tonkintaylor organisation is currently spending .46 over its included Actions minutes (as of April 2026). An audit of all 37 org repositories identified this repo as one of the top cost contributors, with 43 workflow runs recorded since January 2026.

What the current setup costs

The CI matrix runs 3 operating systems × 4 Python versions = 12 jobs per push plus a min-deps run — 13 jobs total per trigger.

GitHub charges hosted runner minutes at:

Runner Multiplier
ubuntu-latest
windows-latest
macos-latest 10×

With 43 runs, the 4 macOS jobs per trigger alone account for ~5,160 Linux-equivalent minutes in this period.

What this changes

Before After
Main matrix 3 OS × 4 Python Linux × 4 Python
Cross-platform Every Python on Win + macOS Single spot-check: Win 3.13 + macOS 3.13
Min-deps ubuntu 3.10 ubuntu 3.10 (unchanged)
Jobs/trigger 13 7

The spot-check includes skip pre-commit hooks (which are Linux tools) to keep duration minimal.

Why this is safe

ruru is a published PyPI library, so some cross-platform validation is genuinely useful. However, testing every Python version on every OS is excessive — any platform-specific bug will be caught by the spot-check on the latest Python version. Full Python version coverage continues on Linux where the package will be used in CI/CD and server environments.

No functional changes

No source code, tests, or configuration is modified. This is a CI runner change only.

@t-t-sonarqube

t-t-sonarqube Bot commented Apr 15, 2026

Copy link
Copy Markdown

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