Skip to content

Commit

Permalink
Use GitHub Action to upload diff images on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Oct 27, 2020
1 parent cdcd259 commit 413ff77
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ jobs:
shell: bash -l {0}
run: make test PYTEST_EXTRA="-r P"

# Upload diff images on test failure
- name: Upload diff images if any test fails
uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
path: tmp-test-dir-with-unique-name

# Build the documentation
- name: Build the documentation
shell: bash -l {0}
Expand Down

0 comments on commit 413ff77

Please sign in to comment.