Budget GitHub Actions runner time by rounding up each eval job to the next whole minute before adding the jobs together. Group cases that can share setup, then check whether the slower jobs still meet your pull request review deadline. In the worked example below, two jobs running three cases apiece use six runner minutes. Six one-case jobs use twelve minutes for the same case list. Before enabling the workflow, budget runner minutes and CometAPI requests for every job needed to recover from a failed shard. GitHub Actions runner pricing

Last reviewed: 2026-11-22

Round every started job before you add the minutes

Start with one private repository and one standard GitHub-hosted runner SKU. The standard two-core x64 Linux runner uses actions_linux, listed at $0.006 per minute when checked. In your worksheet, round each job’s elapsed seconds up to whole minutes, then multiply the total minutes by the SKU rate. Include setup, dependency installation and cleanup in the job measurement. If the workflow uses multiple SKUs, calculate the charge for each SKU and add the dollar subtotals. GitHub Actions runner pricing

estimated_minutes_per_job = ceil(job_runtime_seconds / 60)
estimated_gross_runner_cost = sum(estimated_minutes_per_job * job_sku_rate)

Treat this as a gross compute estimate. GitHub expresses included compute usage as a dollar allowance and applies the applicable unit rate as usage accrues. Record the gross amount in your planning sheet so a workflow that fits inside the allowance still has a visible cost when you compare two designs. Read the net amount from the account’s usage report after discounts. Price storage separately if a design changes artifact or cache use. GitHub Actions billing

Pick a shard size that meets the review deadline

Freeze the case list, model route, input and output limits, and acceptance criteria. Change only how the cases are assigned to jobs. Suppose each job spends 40 seconds on setup and cleanup combined, each case takes 30 seconds, and cases inside a job run sequentially. The timings below are illustrative and assume every job can start immediately.

Job layoutSeconds per jobEstimated runner minutesGross runner costTime until all cases finish
Six jobs with one case each7012$0.07270 seconds
Two jobs with three cases each1306$0.036130 seconds
One job with six cases2204$0.024220 seconds

With a 180-second review deadline, the two-job layout leaves 50 seconds for queue time and timing variation in this model. In a matrix, change the entries from individual cases to two bundles of case IDs to create the two jobs. Setting max-parallel to two on the original six-entry matrix keeps all six jobs. With the same job durations and two available runners, that layout takes three waves of 70 seconds and still uses twelve rounded minutes. Changing the matrix entries is what removes four copies of setup. GitHub Actions matrix guide

For uneven cases, distribute the slow ones across bundles using durations from recent comparable runs. Test the proposed bundles with a warm and a cold dependency cache. A job that moves from 119 to 121 seconds adds a full estimated runner minute, so a small time change can alter the budget even when the pull request still clears its deadline. Keep the same scored case list and planned model calls when comparing layouts. Set the evaluation sample and model allowance

Count the jobs needed to recover a failed shard

Imagine one three-case job fails during result validation after sending all three requests. Its sibling has already completed, and no dependent jobs need to rerun. If the failed shard takes another 130 seconds on its rerun, the estimate rises from six to nine runner minutes, or $0.054 gross. Outbound requests can rise from six to nine. These are ceilings for the illustrated isolated rerun at the assumed job durations and with one dispatch per case. A retry inside an individual case still counts against the model allowance even if it leaves the rounded runner total unchanged.

GitHub Actions defaults matrix strategy.fail-fast to true. A failure can cancel siblings that are running or still queued. If shards are independent and a healthy shard’s results will be usable on recovery, set fail-fast: false under the matrix job’s strategy so that shard can finish and save its results. Keep fail-fast enabled when stopping remaining work promptly matters more. In that case, budget both the time and requests already spent by any canceled shard that started and the work needed to recover its missing cases. GitHub Actions workflow syntax

GitHub also reruns dependent jobs when you rerun failed jobs or a specific job. Before approval, list the jobs the selected rerun will execute and any additional canceled shards whose missing results must be recovered. For each job, add its rounded runner time and possible provider dispatches to what the original attempt already consumed. For example, if a dependent results job runs only in the recovery attempt, takes 45 seconds on the same SKU and makes no model calls, it raises the isolated estimate to ten runner minutes and $0.060 gross while the request count stays at nine. If the required jobs exceed either approved budget, stop and reprice the recovery before dispatch. GitHub guide to rerunning workflows and jobs

Before dispatch, write a durable attempt record with the case ID, workflow run ID, run attempt, dataset revision and approved model route. For a completed non-streaming chat request, capture the response’s usage and model fields next to that record. For a token-priced route, apply the route’s own rates to the applicable usage categories. Keep the allowance reserved when an interrupted job leaves a dispatched request unresolved. If your eval protocol permits reuse, load completed case results only when their dataset, prompt, route and evaluator configuration match the rerun. Otherwise charge for the full repeated shard. CometAPI chat completion reference

Match job timings to the billing report

After the attempt completes, query the workflow jobs endpoint for that specific attempt using a client with read access to Actions in your repository. Fetch all result pages. Record each job ID, conclusion and the difference between started_at and completed_at. Include any other hosted jobs in your whole-workflow estimate, such as a results aggregator. Investigate rows with missing timestamps before counting their duration. If a workflow was rerun, repeat the calculation for every relevant attempt and retain the attempt number on each row. GitHub REST API for workflow jobs

GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs?per_page=100

Compare these timestamp-based estimates with the detailed usage report from the GitHub billing interface. Match the date window, repository, workflow path and runner SKU. Sum matching rows across any other report dimensions that apply to the pilot. A dedicated workflow filename makes the comparison easier when other CI jobs run in the same repository. Check the quantity and gross amount against your worksheet, then read the discount and net amount for the actual account impact. When the totals diverge, check for extra jobs, earlier attempts, a different runner SKU or results close to a minute boundary. GitHub billing reports reference

Pilot the layout with a provider stub that reproduces the planned case duration, counts dispatch attempts and can fail one shard after recording its last attempt. Run the healthy path and the recovery path using the intended fail-fast setting and job dependencies. Require one valid result for each of the six case IDs on both paths. On recovery, compare total estimated runner minutes and total dispatches across attempts with the approved ceilings for that job graph. For the isolated example, that means nine minutes and nine dispatches, including the first attempt. An under-budget rerun with a missing case fails the pilot.

Measure elapsed time from the workflow trigger to a usable result separately from runner minutes. The 180-second target applies to the healthy path. Two successive 130-second attempts on the failed shard alone take 260 seconds before queueing, any wait for rerun approval, or follow-on jobs. Set a separate recovery deadline. If the healthy run is late, inspect queue time and the slowest shard before choosing a new layout. Record the runner cost and the model cost on the same run record and compare their sum per valid case across layouts. Build a workload unit-cost scorecard

After the fixture pilot meets those criteria, authorize one live run with the same case list and the approved route allowance. Use the returned usage to confirm the cost estimate before enabling the layout on every pull request. Start with CometAPI

Sources checked

Official references checked on November 22, 2026. The runner rate reflects the published table on that date. The case timings and rerun counts are planning examples.