-
Notifications
You must be signed in to change notification settings - Fork 14
59 lines (56 loc) · 1.89 KB
/
Copy pathgauntlet.yml
File metadata and controls
59 lines (56 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Validation Gauntlet: gold-labelled disposition benchmark for the validation,
# domain and text-cleaning surfaces. Runs the lightweight fixtures on every PR
# and gates on the absolute thresholds plus no-regression vs the stored
# baseline (benchmarks/gauntlet/baseline.json). Heavier sizes stay manual.
name: Validation Gauntlet
on:
pull_request:
paths-ignore:
- "docs/**"
- "*.md"
workflow_dispatch:
inputs:
rows:
description: "rows per fixture"
default: "300"
update_baseline:
description: "re-pin baseline.json from this run (commit it manually)"
type: boolean
default: false
permissions:
contents: read
jobs:
gauntlet:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: pip
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run gauntlet with gates
run: |
ROWS="${{ github.event.inputs.rows || '300' }}"
EXTRA=""
if [ "${{ github.event.inputs.update_baseline }}" = "true" ]; then
EXTRA="--update-baseline"
fi
python -m benchmarks.gauntlet run --rows "$ROWS" --check $EXTRA
- name: Job summary
if: always()
run: |
if [ -f benchmarks/gauntlet/results/gauntlet.md ]; then
cat benchmarks/gauntlet/results/gauntlet.md >> "$GITHUB_STEP_SUMMARY"
fi
- name: Upload results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: gauntlet-results
path: benchmarks/gauntlet/results/
if-no-files-found: warn