Run Inspect eval sets in GitHub Actions
Answer: Inspect can run several evaluation tasks together as an eval set, with retries and resumable work. GitHub Actions can host a Python continuous integration workflow under .github/workflows so the same inspect eval-set command runs in CI.
Eval sets
Most Inspect examples run a single evaluation task with inspect eval or eval(). That is a good workflow for developing single evaluations, but you will often want to run several evaluations together as a set, for exploring hyperparameters, evaluating on multiple models, or running a full benchmark suite. The inspect eval-set command and eval_set() function can retry failed evaluations, re-use samples from failed tasks so work is not repeated, clean up log files from failed runs after a task succeeds, and let you re-run the command with work picking up where the last invocation left off.
A Python CI workflow
GitHub Actions can create a continuous integration (CI) workflow to build and test a Python project. GitHub-hosted runners include a tools cache of pre-installed software, and that cache includes Python and PyPy. Add a workflow file under .github/workflows. GitHub provides a workflow template for Python if the repository already contains at least one .py file. The Python workflow template can be customized. Install your evaluation package, then run inspect eval-set. Eval sets retry failed evaluations, with a configurable retry strategy. You can re-run the command, and work continues from the last invocation.
| eval-set | workflow | |---|---| | inspect eval-set | run a set of evaluations with retries | | eval_set() | Python function equivalent of eval-set | | .github/workflows | directory for GitHub Actions workflow files | | GitHub-hosted runners | runners with pre-installed Python |
See also
Claims
- id: C1 claim: inspect eval-set and eval_set() run several evaluations as a set, with retries. source: S1 evidence: "The
inspect eval-setcommand andeval_set()function"
- id: C2 claim: Eval sets can be re-run, picking up work from the last invocation. source: S1 evidence: "re-run the command multiple times, with work picking up"
- id: C3 claim: Python CI workflows live under .github/workflows and can use GitHub-hosted runners. source: S2 evidence: "add a workflow template to the .github/workflows directory"
Sources
- [S1] Eval Sets. Inspect AI. https://github.com/UKGovernmentBEIS/inspect_ai/blob/main/docs/eval-sets.qmd . License: MIT. Accessed 2026-11-19.
- [S2] Building and testing Python. GitHub Docs. https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python . License: CC-BY-4.0. Accessed 2026-11-19.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Inspect AI, Eval Sets; GitHub Docs, Building and testing Python. MIT; CC-BY-4.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Inspect AI, Eval Sets; GitHub Docs, Building and testing Python. MIT; CC-BY-4.0.
Cite this
iinventedlight. 2026. "Run Inspect eval sets in GitHub Actions." iinventedlight Library, iil:note:d2f59f61, version of 2026-11-19. https://iinventedlight.com/library/notes/inspect-eval-sets-ci/. License: CC-BY-4.0.
@misc{iil_note_d2f59f61,
author = {{iinventedlight}},
title = {{Run Inspect eval sets in GitHub Actions}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/inspect-eval-sets-ci/},
note = {Permanent ID iil:note:d2f59f61. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- inspect-eval-sets-ci.table.json (table; CC-BY-4.0)
- inspect-eval-sets-ci.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/inspect-eval-sets-ci.md.