Runners
Split a test suite across parallel machines with one step Private beta
Vitko Runners (private beta; requires private-beta onboarding, GitHub App installation, and your organization’s runner label, usually runs-on: vitko-ubuntu-24.04) splits a test suite across parallel shards with one workflow step (vitko-inc/split-tests@v1). Running shards in parallel cuts wall-clock wait time while total billed compute-seconds across all shards stay roughly flat or slightly higher from per-shard setup overhead. Results come back to the original job as one log, one list of failures, and one pass or fail for pytest, cargo nextest, Go, Jest, and Vitest.
Updated November 26, 2026
vitko-inc/checkpoint@v1) skip redundant setup and dependency installs, reducing both wall-clock time and total billed compute-seconds. Pair them when a job has both heavy setup and a long test suite.Add it to your workflow
Replace your test step with the action and put your test command in run:
- uses: vitko-inc/split-tests@v1
with:
run: pytest -q tests/| Tool | Example run | Shared out by |
|---|---|---|
| pytest | pytest -q tests/ | test |
| cargo nextest | cargo nextest run --workspace --no-fail-fast | test |
| Go | go test ./... | package |
| Jest | npx jest --ci | file |
| Vitest | npx vitest run | file |
Run the test tool itself in run (for example uv run pytest, not tox or make test), as a single command. A shell script with &&, pipes or several lines runs in one part, and the log says so.
Any other tool: set tool: command. Your command runs in every part with VITKO_PART (1, 2, …) and VITKO_PARTS, and chooses its own share.
- uses: vitko-inc/split-tests@v1
with:
tool: command
run: ./scripts/run-tests.sh --part "$VITKO_PART" --of "$VITKO_PARTS"Install and build first
The parts start when your tests start and can’t reach the network. Install and build everything before the split: in an earlier step, or in prepare, which runs first in this job, with network.
- uses: vitko-inc/split-tests@v1
with:
prepare: uv sync --locked
run: uv run --locked pytest -qA command that installs as it starts (such as tox) does that in every part, and fails there.
Tests that need the network
Mark them, leave them out of the split, and run them in a separate step:
- uses: vitko-inc/split-tests@v1
with:
run: pytest -q -m "not network"
- run: pytest -q -m networkWith Go, use -skip in the split and -run in the separate step. With Jest or Vitest, use a separate config or a file-name pattern.
How many parts
parts: auto (the default) picks a number that suits your plan and the size of your suite. A suite estimated at under a minute runs in one part, because splitting it would cost more than it saves; the log says so. Set parts to a number to split anyway. After the first run, Vitko remembers how long each test took and balances the parts so they finish close together.
Inputs and outputs
| Input | Default | What it does |
|---|---|---|
run | required | Your test command. |
prepare | — | A command to run first, in this job, with network. |
parts | auto | How many parts. |
tool | auto | pytest, nextest, jest, vitest, go or command. |
env | — | Extra environment variables your tests need, by name. |
junit | vitko-split-tests.xml | JUnit report path; empty to skip. |
working-directory | . | Where to run the tests. |
timings-file | — | Optional test durations, if you keep them. |
Outputs: junit, parts and failed.
The environment your tests see
The parts get the usual build and toolchain variables (PATH, HOME, CI, CARGO_*, PYTHONPATH, NODE_OPTIONS, GO* and similar), plus the names you list in env. Names that look like secrets (containing TOKEN, SECRET, PASSWORD, PRIVATE, CREDENTIAL, or ending in _KEY) are never passed. Start services such as a database before this step; each part gets its own copy, already running.
Results
- Each part’s output in a section you can expand, and every failed test in one place.
- Failed tests as annotations (up to 10), a table of parts in the run summary, and a JUnit report.
- The step fails if any test fails, a part stops early, or a test doesn’t report a result. It never passes on partial results.
Limits
- Up to your plan’s limit of parts at once.
- One split-tests step at a time in a job, and up to four in one job.
- Tests that depend on running in a fixed order, or on each other, can fail when split, as with any parallel test runner.
Billing: wall-clock time vs. billed compute-seconds
Vitko Runners (private beta) charges $0.002/min per running shard billed per second (rounded up to the whole second), with no per-job minimum (not sub-second, and no 1-minute rounding), plus 2,000 free minutes/month for new organizations.
Because each running test shard is billed per second, test splitting cuts wall-clock wait time by running shards in parallel while total billed compute-seconds across all shards stay roughly flat on CPU-heavy suites or slightly higher from per-shard setup overhead. Short suites gain little, which is why auto does not split them. To cut both wall-clock time and total billed compute-seconds by eliminating repeated setup work, pair test splitting with warm starts.
run: step. Keep it in workflows that run in both places. Use @v1, or pin a release such as @v1.0.4.The action is listed on GitHub Marketplace as Vitko split tests; the source is github.com/vitko-inc/split-tests.
Questions this page answers
Does test splitting reduce total billed compute-seconds, and how is it different from warm starts?
Test splitting (vitko-inc/split-tests@v1) runs test shards in parallel to cut wall-clock wait time; each running shard is billed per second (rounded up to the next whole second), so total billed compute-seconds across all shards stay roughly flat or slightly higher from per-shard setup overhead. Warm starts (vitko-inc/checkpoint@v1) reuse pre-warmed dependency state via VM snapshot restore to eliminate redundant setup and install work—reducing both wall-clock time and total billed compute-seconds.
How are parallel test shards billed on Vitko Runners?
Vitko Runners (private beta) charges $0.002/min per running shard billed per second (rounded up to the whole second), with no per-job minimum (not sub-second, and no 1-minute rounding), plus 2,000 free minutes/month for new organizations. Because each running shard is billed per second, test splitting cuts wall-clock wait time while total billed compute-seconds across all shards stay roughly flat or slightly higher from per-shard setup overhead. Requires private-beta onboarding, GitHub App installation, and your organization’s runner label (usually vitko-ubuntu-24.04).