Skip to content

Choose a tag to compare

@tap222 tap222 released this 30 Sep 17:07
· 291 commits to main since this release

Assay AI regression test v1.0.1

The first Marketplace release of Assay's GitHub Action. It runs your AI tests on every pull request, compares each test with its last passing run on the default branch, and posts what changed as a PR comment.

What it tells you on each pull request

  • What the AI does differently, case by case: checks, tool calls in order, cost and context.
  • Whether a change is real or noise. With repeated attempts, chance (8/8 to 7/8) is kept apart from a true regression (8/8 to 0/8), corrected for the number of checks.
  • What changed around it: the prompt version, model, tools or settings next to each regression.
  • Checks a PR can't loosen. A PR that removes a contract, raises a limit, or skips the test its change breaks fails until a maintainer accepts it with a label.

Usage

# .github/workflows/ai-tests.yml
on: { push: { branches: [main] }, pull_request: {} }
permissions: { contents: read, pull-requests: write }
jobs:
  ai-tests:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with: { python-version: "3.12" }
      - uses: tap222/assay-evals@v1
        with:
          command: pytest --assay tests/ai

Tests are ordinary pytest tests that take the assay_case fixture. Start with pip install assay-server pytest and assay init, or try the one-minute demo in examples/prompt-regression, which needs no API key.

Inputs

  • command: the test command (default pytest --assay)
  • install: what to install first (default pip install assay-server pytest)
  • timeout: seconds before a hung run is stopped
  • comment: post or update the PR comment (default true)
  • fail-on-inconclusive: fail when results couldn't be judged or need more attempts (default true)

Full reference: docs/ci.md

In this release

  • Installs assay-server 0.2.1 and assay-evals 0.2.1 from PyPI.
  • A regression after a prompt version change is no longer reported as "nothing on your side changed".
  • Use @v1 to get 1.x fixes automatically, or pin @v1.0.1.