Skip to content

Commit 2fb1198

Browse files
committed
ci: add workflow to update regression baselines
1 parent 5687d4e commit 2fb1198

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Update Regression Baselines
2+
3+
on:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: update-regression-baselines-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
update-baselines:
15+
name: Update regression baselines
16+
runs-on: ubuntu-24.04
17+
timeout-minutes: 30
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
22+
with:
23+
ref: ${{ github.ref }}
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
27+
with:
28+
python-version: "3.14"
29+
cache: pip
30+
31+
- name: Install testing dependencies
32+
run: |
33+
python -m pip install --upgrade pip
34+
python -m pip install -e .[testing]
35+
36+
- name: Update regression baselines
37+
run: pytest tests/regression --update-baselines
38+
39+
- name: Commit updated baselines
40+
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6
41+
with:
42+
commit_message: "test(regression): update baselines"
43+
commit_user_name: github-actions[bot]
44+
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)