Skip to content

Commit 3553bbf

Browse files
committed
ci: clear cached regression test data before baseline updates
1 parent 86067e7 commit 3553bbf

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/update_regression_baselines.yaml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
update-baselines:
1515
name: Update regression baselines
1616
runs-on: ubuntu-24.04
17-
timeout-minutes: 30
17+
timeout-minutes: 45
1818

1919
steps:
2020
- name: Checkout
@@ -33,11 +33,27 @@ jobs:
3333
python -m pip install --upgrade pip
3434
python -m pip install -e .[testing]
3535
36+
- name: Clean regression test data cache
37+
run: |
38+
rm -rf .testdata
39+
rm -rf .pytest_cache
40+
3641
- name: Update regression baselines
37-
run: pytest tests/regression --update-baselines
42+
run: |
43+
python -m pytest tests/regression \
44+
--update-baselines \
45+
-n 1 \
46+
-vv
47+
48+
- name: Upload updated baselines
49+
if: always()
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: updated-regression-baselines
53+
path: tests/regression/baselines/**
3854

3955
- name: Commit updated baselines
40-
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6
56+
uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0
4157
with:
4258
commit_message: "test(regression): update baselines"
4359
commit_user_name: github-actions[bot]

0 commit comments

Comments
 (0)