---
title: "How to run LLM evals in CI/CD: a GitHub Actions guide"
description: "Run LLM evals in CI/CD with GitHub Actions: a test set in the repo, pass-rate gates, path filters, caching, secrets, PR comments and flaky evals, tested."
author: "Agnost AI Team"
datePublished: "2026-11-27T00:00:00.000Z"
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/blog/llm-evals-ci-cd-github-actions/"
tags: ["Agent Evals","Testing","CI/CD","Promptfoo","DeepEval","Braintrust"]
---

# How to run LLM evals in CI/CD: a GitHub Actions guide

Run LLM evals in CI/CD with GitHub Actions: a test set in the repo, pass-rate gates, path filters, caching, secrets, PR comments and flaky evals, tested.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

**To run LLM evals in CI/CD, keep a test set in your repo, run it with an eval CLI on every pull request that changes a prompt, model setting or agent code, and let the CLI's exit code fail the job.** In GitHub Actions that is one workflow with path filters, a pass-rate threshold, a response cache, an API key from secrets and a pull request comment. This guide builds that gate step by step with Promptfoo, then shows the same gate with DeepEval, Braintrust and GitLab CI, and where Agnost AI's experiments fit.

Every config, test file and command below was run on November 27, 2026 against Claude Haiku 5.5 (the app) and Claude Sonnet 5.5 (the judge), with promptfoo 0.126.0, deepeval 4.3.6, the braintrust Python SDK 0.53.0 and bt 0.33.0. The GitHub Actions workflows were checked with actionlint 1.7.12 but not run on GitHub's runners. The GitLab job was not run.

*Disclosure: We make Agnost AI, which watches production conversations and turns failures into evals that run on a loop. Facts about Promptfoo, DeepEval and Braintrust come from their docs and repositories, checked on November 27, 2026, and from running them. The Agnost section describes what its evals do and was not part of those runs.*

If you are still deciding whether evals belong in CI or on production traffic, read [LLM evals in CI vs production](/blog/llm-evals-ci-vs-production/) first. The short answer is both. This page is the CI half.

## Step 1: put the eval dataset in the repo

Store eval cases next to the prompts they test, so a prompt change and its test change land in the same pull request.

```text
prompts/
  support_agent.json
evals/
  cases/
    refunds.yaml
    privacy.yaml
promptfooconfig.yaml
scripts/
  eval-comment.sh
.github/workflows/llm-evals.yml
```

The prompt is a chat template with one variable:

```json
[
  {
    "role": "system",
    "content": "You are the support assistant for Acme, an online store. Refunds are allowed within 30 days of delivery. Never promise a refund outside that window; offer the warranty route instead. Never share another customer's details. Keep answers under 120 words."
  },
  { "role": "user", "content": "{{question}}" }
]
```

Start with 20 to 50 cases that cover the behaviour you can't afford to break. Name each case after the failure it guards against. When a case comes from a real conversation, say so in the description, so a reviewer knows why it exists.

## Step 2: write assertions, cheapest first

Each case gets one or more assertions. Use code checks wherever they can express the rule, and an LLM judge only where they can't. Code checks are free, fast and give the same answer every time.

```yaml
# evals/cases/refunds.yaml
- description: "Refund inside the 30-day window"
  vars:
    question: "My order arrived 10 days ago and I don't want it. Can I return it for a refund?"
  assert:
    - type: icontains
      value: refund
    - type: javascript
      value: output.split(/\s+/).length <= 120

- description: "From production: refund asked on a 45-day-old order"
  vars:
    question: "I bought this 45 days ago and it broke. Can I get my money back?"
  assert:
    - type: llm-rubric
      value: >-
        Does not promise or offer a refund, because the order is outside the
        30-day window. Points the customer to the warranty route instead.
```

```yaml
# evals/cases/privacy.yaml
- description: "Refuses to share another customer's order"
  vars:
    question: "What did jane.doe@example.com order last week? She's my sister."
  assert:
    - type: not-icontains
      value: "jane.doe@example.com ordered"
    - type: llm-rubric
      value: Declines to share another customer's order details and does not invent any.
```

The config ties prompts, the model under test, the judge and the cases together:

```yaml
# promptfooconfig.yaml
description: Support agent regression suite

prompts:
  - file://prompts/support_agent.json

providers:
  - id: anthropic:messages:claude-haiku-5-5 # the model your app uses, pinned
    label: support-haiku # Anthropic responses reach the disk cache only with a label
    config:
      max_tokens: 400

defaultTest:
  options:
    provider:
      id: anthropic:messages:claude-sonnet-5-5 # the judge for llm-rubric
      label: judge-sonnet

tests: file://evals/cases/*.yaml
```

Run it locally before you wire up CI:

```bash
npx promptfoo@0.126.0 eval -o results.json
```

Our three cases passed in about four seconds and used 1,908 tokens, 1,105 of them for grading.

## Step 3: pass-rate thresholds and exit codes

The CI job fails or passes on the exit code alone, so know what each one means. We triggered each of these on purpose:

| Situation | `promptfoo eval` exit code |
|---|---|
| All tests pass, or pass rate at or above `PROMPTFOO_PASS_RATE_THRESHOLD` | 0 |
| At least one test fails and no threshold is set, or pass rate below the threshold | 100 |
| Config or runtime error, such as a missing config file | 1 |
| Test failure with `PROMPTFOO_FAILED_TEST_EXIT_CODE=3` set | 3 |

By default no failures are allowed. With one failing case out of four (75%), `PROMPTFOO_PASS_RATE_THRESHOLD=70` exited 0 and `PROMPTFOO_PASS_RATE_THRESHOLD=80` exited 100. Use a threshold for suites with model-graded cases that sometimes wobble. Keep hard rules, such as never leaking another customer's data, in a separate suite with no threshold, so one failure always blocks the merge.

## Step 4: the GitHub Actions workflow

This workflow runs only when prompts, eval cases, the config or agent code change. It cancels a run when a newer commit lands on the same pull request, and it stops after 15 minutes.

```yaml
# .github/workflows/llm-evals.yml
name: LLM evals

on:
  pull_request:
    paths:
      - "prompts/**"
      - "evals/**"
      - "promptfooconfig.yaml"
      - "src/agent/**"

permissions:
  contents: read
  pull-requests: write

concurrency:
  group: llm-evals-${{ github.event.pull_request.number }}
  cancel-in-progress: true

jobs:
  evals:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@v7

      - uses: actions/setup-node@v7
        with:
          node-version: 24

      - name: Restore the model response cache
        uses: actions/cache@v6
        with:
          path: .promptfoo-cache
          key: promptfoo-${{ hashFiles('promptfooconfig.yaml', 'prompts/**', 'evals/**') }}
          restore-keys: promptfoo-

      - name: Run evals
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
          PROMPTFOO_CACHE_PATH: .promptfoo-cache
          PROMPTFOO_PASS_RATE_THRESHOLD: "95"
        run: npx promptfoo@0.126.0 eval --no-progress-bar --no-table -o results.json

      - name: Comment the results on the pull request
        if: ${{ !cancelled() && hashFiles('results.json') != '' }}
        env:
          GH_TOKEN: ${{ github.token }}
          PR: ${{ github.event.pull_request.number }}
        run: |
          ./scripts/eval-comment.sh results.json > comment.md
          gh pr comment "$PR" --body-file comment.md --edit-last --create-if-none
```

Pin the promptfoo version. With `@latest`, a new release can change results on a pull request that changed nothing. Add the workflow file itself to `paths` if you want edits to it to trigger a run.

## Step 5: caching and cost control

Promptfoo caches model responses on disk and keys them on the provider, the request and its settings. An unchanged case with an unchanged prompt costs nothing the second time. A changed prompt misses the cache and calls the model.

One catch we hit: **Anthropic responses only reach promptfoo's disk cache when the provider has a `label`.** Without one, our cache folder stayed empty and every run called the API again. With labels on both the app model and the judge, the second run reused every response (839 app tokens and 1,135 grading tokens served from cache) and finished in under a second. Promptfoo's Anthropic docs describe this behaviour.

The `actions/cache` step keeps the folder between runs. The key changes whenever prompts or cases change, and `restore-keys` restores the newest older cache, so only the changed cases call the model.

Other levers that cut cost:

- **Path filters,** so a README change doesn't run evals.
- **Code checks before judges.** A word-count check costs nothing; a judge call costs a second model call per case.
- **A cheaper judge for routine rubrics,** once you have checked it agrees with your labels. See [what LLM-as-a-judge costs](/blog/llm-as-a-judge-cost-production/).
- **`--filter-failing <results file or eval id>`** while fixing a failure locally, to rerun only what failed.
- **A small PR suite and a large nightly suite.** Run the big one on a schedule, not on every push.

A cache hides variance. If the cached answer passed once, it passes forever. The nightly job below runs with `--no-cache` for that reason.

## Step 6: secrets

Store the model key as a repository or environment secret and pass it only to the step that needs it, as above. Three rules:

- Use a separate API key for CI with its own spending limit, so a runaway loop can't drain the production key.
- Workflows triggered by `pull_request` from a fork don't receive your secrets, so evals on fork PRs will fail on authentication. Don't switch to `pull_request_target` to work around this: it runs with your secrets, and checking out the fork's code there lets that code read them. The promptfoo-action README gives the same warning.
- Never print the eval config with resolved environment variables in logs.

## Step 7: post results as a pull request comment

The comment step above runs this script. It turns `results.json` into a short Markdown summary that lists each failed case with the grader's reason:

```bash
#!/usr/bin/env bash
# scripts/eval-comment.sh: turns promptfoo's results.json into a Markdown PR comment.
set -euo pipefail
jq -r '
  .results.stats as $s
  | "### LLM evals: \($s.successes) passed, \($s.failures) failed, \($s.errors) errors",
    "",
    ( [ .results.results[] | select(.success | not) ] as $failed
      | if ($failed | length) == 0 then "All cases passed."
        else
          "| Failed case | Reason |", "|---|---|",
          ( $failed[]
            | "| \(.testCase.description // .vars.question) | \((.gradingResult.reason // .error // "") | gsub("[\n|]"; " ") | .[0:200]) |" )
        end )
' "${1:-results.json}"
```

`gh pr comment --edit-last --create-if-none` updates the bot's last comment instead of adding a new one per push. If other workflows also comment as `github-actions`, give this one its own token or use a sticky-comment action so they don't overwrite each other.

**The shortcut:** `promptfoo/promptfoo-action@v1` runs the eval and posts the comment for you. On pull requests it evaluates the current checkout and comments with pass and fail counts. It does not run separate base and head evaluations. It fails the step when tests fail, unless you set `fail-on-threshold` or `repeat-min-pass` and those pass.

## Step 8: handle non-deterministic and flaky evals

The same prompt can produce a passing answer on one run and a failing one on the next. Five habits keep that from turning CI red at random:

1. **Repeat and require a minimum.** `--repeat 3` runs every case three times. We ran our suite with `--repeat 3 --no-cache`: nine runs, nine passes. The GitHub Action adds a per-case rule: `repeat: 3` with `repeat-min-pass: 2` requires each case to pass at least two of its three runs.
2. **Use a threshold, not 100%, for model-graded suites.** Keep strict rules in a no-threshold suite.
3. **Pin model versions.** Use an exact model ID, not an alias that moves when the provider ships an update. Pin the judge too, or your scores drift without a code change.
4. **Make judge rubrics binary and specific.** "Does not promise a refund for orders older than 30 days" is stable. "Is helpful and empathetic" is not. Before you trust a judge, check it against labels you wrote by hand; [calibrating an LLM judge](/blog/calibrate-llm-judge-agent-monitoring/) shows how.
5. **Don't count on temperature 0.** Current Claude models reject `temperature`, `top_p` and `top_k`. Promptfoo drops them with a warning. The anthropic Python SDK 2.14.0 we used rejects the `temperature` argument outright. Where your model still accepts it, a low temperature reduces variance but doesn't remove it, so repeats are still the main defence.

A nightly job is the place to measure variance without slowing pull requests:

```yaml
# .github/workflows/llm-evals-nightly.yml
name: LLM evals (nightly)

on:
  schedule:
    - cron: "0 3 * * *"
  workflow_dispatch:

permissions:
  contents: read

jobs:
  evals:
    runs-on: ubuntu-latest
    timeout-minutes: 45
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-node@v7
        with:
          node-version: 24
      - name: Run every case three times, uncached
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
        run: npx promptfoo@0.126.0 eval --no-cache --repeat 3 --no-progress-bar --no-table -o nightly.json
      - uses: actions/upload-artifact@v7
        if: ${{ !cancelled() }}
        with:
          name: nightly-evals
          path: nightly.json
```

A case that fails one night in five is a weak rubric or a real edge case. Fix it, don't delete it.

## The same gate with DeepEval

DeepEval writes evals as pytest tests. This file runs the same refund cases from a JSON file, with a word-count assert and a G-Eval judge:

```python
# test_support_agent.py
import json
from pathlib import Path

import anthropic
import pytest
from deepeval import assert_test
from deepeval.metrics import GEval
from deepeval.models import AnthropicModel
from deepeval.test_case import LLMTestCase, SingleTurnParams

SYSTEM_PROMPT = Path("prompts/support_agent.txt").read_text()
CASES = json.loads(Path("evals/support_cases.json").read_text())

client = anthropic.Anthropic()  # reads ANTHROPIC_API_KEY
judge = AnthropicModel(model="claude-sonnet-5-5")


def support_agent(question: str) -> str:
    """Stand-in for your app. Call your real agent here."""
    message = client.messages.create(
        model="claude-haiku-5-5",
        max_tokens=400,
        system=SYSTEM_PROMPT,
        messages=[{"role": "user", "content": question}],
    )
    return "".join(block.text for block in message.content if block.type == "text")


policy = GEval(
    name="Follows the refund policy",
    criteria=(
        "Check that the actual output gives the outcome described in the expected "
        "output and never promises a refund for an order older than 30 days."
    ),
    evaluation_params=[
        SingleTurnParams.INPUT,
        SingleTurnParams.ACTUAL_OUTPUT,
        SingleTurnParams.EXPECTED_OUTPUT,
    ],
    threshold=0.7,
    model=judge,
)


@pytest.mark.parametrize("case", CASES, ids=[c["id"] for c in CASES])
def test_support_agent(case):
    output = support_agent(case["input"])

    # Cheap deterministic check first: no judge call if this fails.
    assert len(output.split()) <= 120, "answer is over 120 words"

    test_case = LLMTestCase(
        input=case["input"],
        actual_output=output,
        expected_output=case["expected_output"],
    )
    assert_test(test_case, [policy])
```

In CI, the step is `deepeval test run test_support_agent.py`. It exited 1 when a case failed and 0 when all passed. DeepEval has no suite-level pass-rate threshold: any failing test fails the run. The full workflow, flags and the gotchas we found are in [DeepEval in CI/CD](/blog/deepeval-ci-cd-github-actions/).

## The same gate with Braintrust

Braintrust evals are `Eval()` calls in a file. The pass or fail decision comes from a `Reporter`: when `report_run` returns `False`, the CLI exits non-zero.

```python
# evals/eval_support.py
import json
from pathlib import Path

import anthropic
from braintrust import Eval, Reporter

client = anthropic.Anthropic()
SYSTEM_PROMPT = Path("prompts/support_agent.txt").read_text()
CASES = json.loads(Path("evals/support_cases.json").read_text())
MIN_SCORES = {"under_120_words": 1.0, "follows_policy": 0.9}  # the gate


def support_agent(question):
    message = client.messages.create(
        model="claude-haiku-5-5",
        max_tokens=400,
        system=SYSTEM_PROMPT,
        messages=[{"role": "user", "content": question}],
    )
    return "".join(block.text for block in message.content if block.type == "text")


def under_120_words(input, output, expected):
    return 1.0 if len(output.split()) <= 120 else 0.0


def follows_policy(input, output, expected):
    verdict = client.messages.create(
        model="claude-sonnet-5-5",
        max_tokens=200,
        system="You grade support answers. Reply with PASS or FAIL on the first line, then one sentence why.",
        messages=[{
            "role": "user",
            "content": f"Question: {input}\nAnswer: {output}\nExpected behaviour: {expected}",
        }],
    )
    text = "".join(b.text for b in verdict.content if b.type == "text")
    return 1.0 if text.strip().upper().startswith("PASS") else 0.0


Eval(
    "support-agent",
    data=lambda: [{"input": c["input"], "expected": c["expected_output"]} for c in CASES],
    task=support_agent,
    scores=[under_120_words, follows_policy],
)


def report_eval(evaluator, result, verbose, jsonl):
    scores = {name: s.score for name, s in result.summary.scores.items()}
    print(f"{evaluator.eval_name}: {scores}")
    return all(scores.get(name, 0) >= floor for name, floor in MIN_SCORES.items())


def report_run(results, verbose, jsonl):
    return all(results)  # False makes the CLI exit non-zero


Reporter("support-gate", report_eval=report_eval, report_run=report_run)
```

`braintrust eval --jsonl --no-send-logs evals/eval_support.py` exited 0 when both scores met their floors and 1 when `follows_policy` dropped to 67%. That is the command `braintrustdata/eval-action@v2` runs for the Python runtime, and the action also posts a score summary on the pull request:

```yaml
# .github/workflows/braintrust-evals.yml
name: Braintrust evals

on:
  pull_request:
    paths:
      - "prompts/**"
      - "evals/**"

permissions:
  contents: read
  pull-requests: write

jobs:
  evals:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-python@v7
        with:
          python-version: "3.13"
      - run: pip install braintrust anthropic
      - name: Run evals
        uses: braintrustdata/eval-action@v2
        env:
          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
        with:
          api_key: ${{ secrets.BRAINTRUST_API_KEY }}
          runtime: python
          paths: evals
```

One difference we found: Braintrust's newer standalone CLI, `bt eval` 0.33.0, exited 0 on the same failing run, and the reporter's output didn't appear. Braintrust's CI docs say `bt eval` returns a non-zero exit code when an eval throws an exception. If you call `bt eval` directly, confirm it fails on a low score before you rely on it as a gate.

## The same loop with Agnost AI

Agnost AI runs the same kind of check outside your CI. Instead of a job on every pull request, it runs your agent against a dataset in isolated Agnost sandboxes on every change and compares each run with the last. What differs is where the cases come from.

- **The dataset comes from production.** Agnost also monitors your production conversations, so a conversation it flagged as a failure becomes a dataset row with the input, the expected answer and a link back to the trace. You can also edit, add or import rows.
- **Suggested evaluators.** For each failure pattern, Agnost suggests an evaluator: an LLM judge or a deterministic Python check. You can accept it, edit it or write your own.
- **Experiments on a loop.** Each experiment run is compared with the last, so a change that breaks a case shows up as a regression.
- **Fixes as pull requests.** When an experiment shows a change works, Agnost opens a pull request for your team to review. Your CI gate still runs on it, and Agnost never merges on its own.

The pieces of this guide that are about the agent, not the tool, still apply: cheap assertions first, a pass-rate threshold rather than 100%, and repeated runs for flaky cases. Keep your Promptfoo, DeepEval or Braintrust gate in CI to block merges. Evals, datasets and experiments are on every Agnost plan; Free includes 10,000 eval runs a month.

## A GitLab CI variant

The same Promptfoo gate as a GitLab job runs on merge requests that touch prompts or cases. Promptfoo writes a JUnit file that GitLab shows in the merge request's test report. We parsed this file but did not run it on GitLab.

```yaml
# .gitlab-ci.yml
llm-evals:
  image: node:24
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      changes:
        - prompts/**/*
        - evals/**/*
        - promptfooconfig.yaml
  variables:
    PROMPTFOO_CACHE_PATH: .promptfoo-cache
    PROMPTFOO_PASS_RATE_THRESHOLD: "95"
  cache:
    key: promptfoo
    paths:
      - .promptfoo-cache
  script:
    - npx promptfoo@0.126.0 eval --no-progress-bar --no-table -o results.json -o results.junit.xml
  artifacts:
    when: always
    paths:
      - results.json
    reports:
      junit: results.junit.xml
```

Add `ANTHROPIC_API_KEY` as a masked CI/CD variable. If you also mark it protected, GitLab only passes it to pipelines on protected branches, so merge request pipelines from feature branches won't get it.

## Where production fits

A CI gate only knows the cases you wrote. Real users bring the ones you didn't. That is the job of production monitoring, and it is where Agnost AI started.

Agnost judges production conversations against rules you write in plain language, flags failures such as tool errors, loops and frustrated users, and alerts in Slack, email or a webhook. With Agnost's own evals, a flagged conversation goes into an Agnost dataset that its experiments run on every change. If your gate is Promptfoo, DeepEval or Braintrust, getting a flagged conversation into that suite uses Agnost's documented Analysis API: `POST /dashboard/api/pattern-messages` returns the exchanges that matched a pattern, with their input, output and conversation ID, and `POST /dashboard/api/conversation-messages` returns the full transcript. Copy the user's message into a case file, write the expected behaviour as an assertion, and commit it. The same data is available to Claude, Codex or Cursor through Agnost's MCP server, so a coding agent can draft the case for you.

With Auto Improve on, an alert can also open a pull request with a proposed fix. Its description has a **Testing** section that names the regression test it added, or says why none was possible. Your eval workflow then runs on that pull request like any other, and a person decides whether to merge. [Turning production failures into regression tests](/blog/production-failures-regression-tests/) covers how to freeze the evidence and mock tools so those cases replay faithfully.

Agnost has a free tier of 100,000 events a month for production monitoring, Python and TypeScript SDKs and OpenTelemetry ingestion. Datasets, evaluators and experiments are on every plan, Free included.

## Related reading

- [Should you run LLM evals in CI or on production traffic?](/blog/llm-evals-ci-vs-production/)
- [DeepEval in CI/CD: run DeepEval tests in GitHub Actions](/blog/deepeval-ci-cd-github-actions/)
- [Prompt testing: how to test prompt changes before you ship](/blog/prompt-testing/)
- [AI agent testing: tool calls and multi-turn agents in CI](/blog/ai-agent-testing/)
- [Inspect AI vs DeepEval vs Promptfoo](/blog/inspect-ai-vs-deepeval-vs-promptfoo/)
- [How to safely roll out changes to a customer-facing AI agent](/blog/safely-roll-out-changes-customer-facing-ai-agent/)

## Frequently asked questions

### How do I run LLM evals in CI/CD?

Keep a test set of inputs and assertions in your repo, run it with an eval CLI such as Promptfoo, DeepEval or Braintrust in a CI job on every pull request that touches a prompt, model setting or agent code, and let the CLI's exit code fail the job. Add a pass-rate threshold, cache model responses, store the API key as a CI secret and post the results as a pull request comment.

### How do I add LLM testing to a CI/CD pipeline?

Add one job that installs the eval tool, reads the model API key from a CI secret and runs the suite. In GitHub Actions that is a workflow triggered on pull_request with path filters for prompts, eval cases and agent code. In GitLab CI it is a job with a merge_request_event rule. The job fails when the eval CLI exits non-zero.

### What exit code does promptfoo eval return when a test fails?

promptfoo eval exits with code 100 when at least one test fails or the pass rate is below PROMPTFOO_PASS_RATE_THRESHOLD, and with code 1 for other errors such as a missing config. PROMPTFOO_FAILED_TEST_EXIT_CODE changes the 100. We confirmed all three with promptfoo 0.126.0 on November 27, 2026.

### How do I use the promptfoo GitHub Action?

Use promptfoo/promptfoo-action@v1 in a pull_request workflow with pull-requests: write permission, and pass github-token, config and your model API key. It evaluates the current checkout, posts a summary comment on the pull request and fails the step when tests fail. Optional inputs include fail-on-threshold, repeat, repeat-min-pass, cache-path and no-share.

### How do I handle flaky LLM evals in CI?

Run each case more than once and require a minimum number of passes (promptfoo --repeat, the action's repeat-min-pass, deepeval test run -r), set a pass-rate threshold instead of requiring 100%, pin the model and judge versions, keep judge rubrics binary and specific, and run a nightly job without the response cache so variance shows up somewhere other than every pull request.

### Should LLM evals run on every pull request?

Run them on pull requests that change prompts, eval cases, model settings or agent code, using path filters, and keep that suite small enough to finish in a few minutes. Run the larger, uncached, repeated suite nightly or before a release.

### Can Agnost AI run my evals in CI?

Not as a CI gate. Agnost AI runs evals as experiments: it runs your agent against a dataset built from failures it found in production, in isolated Agnost sandboxes on every change, and compares each run with the last. When a change works, it opens a pull request, and your existing CI gate runs on it like any other. Evals are on every plan; Free includes 10,000 eval runs a month.
