Skip to content

Commit

Permalink
wip: retry w.o. baselines existing
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsbck committed Nov 22, 2024
1 parent 1be9922 commit 8e6de5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/update_regression_baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ jobs:
run: |
git config --global user.name '$username'
git config --global user.email '[email protected]'
mv tests/regression_test_baselines.json tests/regression_test_baselines.json.bak
# Check if regression test results exist in main branch
if [ -f 'git cat-file -e main:tests/regression_test_baselines.json' ]; then # modify to use main:tests/regression_test_baselines.json when merged to main
mv tests/regression_test_baselines.json tests/regression_test_baselines.json.bak
else
echo "No pre-existing baselines found"
fi
NEW_BASELINE=1 pytest -m regression
- name: Add Baseline update report to PR comment
uses: actions/github-script@v7
if: always()
if: github.event.pull_request.base.ref == 'main' # might need `always()` to work
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
17 changes: 0 additions & 17 deletions tests/regression_test_baselines.json

This file was deleted.

0 comments on commit 8e6de5a

Please sign in to comment.