Skip to content

ci: reduce GitHub Actions costs by ~85% on PRs#1054

Merged
VinciGit00 merged 1 commit intomainfrom
ci/reduce-actions-costs
Mar 24, 2026
Merged

ci: reduce GitHub Actions costs by ~85% on PRs#1054
VinciGit00 merged 1 commit intomainfrom
ci/reduce-actions-costs

Conversation

@VinciGit00
Copy link
Copy Markdown
Member

Summary

  • OS matrix on PRs: reduced from 3 OS (ubuntu/macOS/windows) to ubuntu-only. macOS (10x cost) and Windows (2x cost) run only on push to main.
  • Python versions: reduced from 3.10/3.11/3.12 to 3.10/3.12 (testing range extremes only).
  • Benchmarks: now run only on push to main, not on every PR.
  • Code quality checks: run only on push (removed duplicate code-quality.yml workflow already present in test-suite.yml).
  • Playwright: removed unnecessary install from benchmark job.

Cost impact

Scenario Before After
PR unit tests 9 jobs (3 OS × 3 Py) ≈ 39× base cost 2 jobs (1 OS × 2 Py) = 2×
PR total jobs ~16 ~6
Push to main ~16 ~12

Test plan

  • Verify PR-triggered workflows run only on ubuntu with Python 3.10 and 3.12
  • Verify push-to-main workflows still run the full OS matrix
  • Verify benchmarks only trigger on main push
  • Verify code quality checks still run on push events

🤖 Generated with Claude Code

- Limit OS matrix to ubuntu-only on PRs (macOS/Windows on push only)
- Reduce Python matrix from 3.10/3.11/3.12 to 3.10/3.12
- Run benchmarks only on push to main
- Run code-quality checks only on push events
- Remove Playwright install from benchmark job
- Delete duplicate code-quality.yml workflow

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • .github/workflows/code-quality.yml

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Mar 24, 2026
@VinciGit00 VinciGit00 merged commit 7b5733d into main Mar 24, 2026
10 of 12 checks passed
@VinciGit00 VinciGit00 deleted the ci/reduce-actions-costs branch March 24, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant