AI CI bills are different
Standard CI cost is runner minutes. AI CI also burns:
- API tokens — every eval call hits Anthropic / OpenAI / etc.
- GPU minutes — orders of magnitude more than CPU.
- Cloud egress — when models or datasets are pulled in/out.
- Model registry storage — checkpoints add up.
Discipline checklist
- Cache eval results on (prompt SHA, model version, scorer SHA). Don't re-call the model on PRs that didn't change those.
- Smoke vs full — small subset on PRs, full on main / nightly.
- Skip on docs-only —
paths-ignoreon the AI workflow. - Concurrency — cancel-in-progress on PR re-pushes.
- Budget alerts — set monthly spending caps at the API provider; have CI fail-fast if a budget circuit-breaker fires.
- Self-hosted for the heavy lifting — homelab GPU is free per minute.
Visibility
Append the run's API token usage to the GitHub Step Summary. Over a quarter, you can see which prompts / which test patterns dominate your bill.