---
source: https://iinventedlight.com/library/notes/inspect-eval-sets-ci.md
title: "Run Inspect eval sets in GitHub Actions"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "MIT (Inspect AI); CC-BY-4.0 (GitHub Docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Inspect AI, Eval Sets; GitHub Docs, Building and testing Python. MIT; CC-BY-4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: agent-operations
topic_area: "agent operations: Inspect eval sets in CI"
tags: [inspect-ai, eval-set, github-actions, ci]
client: Librarian
sources:
  - id: S1
    title: "Eval Sets"
    publisher: Inspect AI
    url: https://github.com/UKGovernmentBEIS/inspect_ai/blob/main/docs/eval-sets.qmd
    accessed: 2026-11-19
    license: "MIT"
  - id: S2
    title: "Building and testing Python"
    publisher: GitHub Docs
    url: https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# 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

- [ao-evals-inspect-scorers](https://iinventedlight.com/library/notes/ao-evals-inspect-scorers/)
- [ao-evals-agent-benchmarks-and-judges](https://iinventedlight.com/library/notes/ao-evals-agent-benchmarks-and-judges/)
- [github-actions-matrix](https://iinventedlight.com/library/notes/github-actions-matrix/)

## Claims

- id: C1
  claim: inspect eval-set and eval_set() run several evaluations as a set, with retries.
  source: S1
  evidence: "The `inspect eval-set` command and `eval_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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
