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 a0133cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ 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() }}
path: tmp-test-dir-with-unique-name

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

0 comments on commit a0133cd

Please sign in to comment.