Integrations
GitHub Action
The modelstill-gate composite action posts the release gate on a pull request and fails the job when the gate fails.
The action lives at .github/actions/modelstill-gate in the ModelStill repository. Use it by path and a full commit SHA:
- uses: <owner>/modelstill/.github/actions/modelstill-gate@<commit-sha>
with:
spec: tasks/<task>/spec.yaml
history: evals/history.jsonl
run: ${{ steps.candidate.outputs.run }}
baseline: ${{ vars.MODELSTILL_BASELINE_RUN }}
flip-rate: ${{ steps.candidate.outputs.flip_rate }}
cost-ratio: ${{ steps.candidate.outputs.cost_ratio }}
p95-latency-ms: ${{ steps.candidate.outputs.p95_latency_ms }}Inputs
| Input | Default | Meaning |
|---|---|---|
spec | the task spec | |
history | the run history file | |
run | the candidate run id | |
baseline | the accepted baseline run id | |
flip-rate, cost-ratio, p95-latency-ms | measured values; pass failing worst cases when not measured | |
primary-metric | a named metric to gate on | |
python-version | 3.12 | |
package | modelstill==0.1.0 | until a release is on PyPI, a pinned git URL such as modelstill @ git+https://...@<sha>#subdirectory=python/modelstill |
working-directory | the workspace | |
github-token | github.token | used to post the comment |
What it does
- Sets up uv, pinned by commit.
- Installs
packageinto a virtualenv under$RUNNER_TEMP. - Runs
modelstill report gateand copies the Markdown report into the job summary. - On
pull_requestevents, posts the report as a comment or edits the earlier one, found by its hidden first line<!-- modelstill-gate -->. - Fails the job when the gate failed, after the comment is posted.
The job needs pull-requests: write and contents: read. See Gate a change in CI for the full workflow.