Repository navigation
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/aiTests 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 (defaultpytest --assay)install: what to install first (defaultpip install assay-server pytest)timeout: seconds before a hung run is stoppedcomment: post or update the PR comment (defaulttrue)fail-on-inconclusive: fail when results couldn't be judged or need more attempts (defaulttrue)
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
@v1to get 1.x fixes automatically, or pin@v1.0.1.