Skip to content

Commit a0133cd

Browse files
committed
Use GitHub Action to upload diff images on test failure
1 parent cdcd259 commit a0133cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci_tests.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ jobs:
117117
shell: bash -l {0}
118118
run: make test PYTEST_EXTRA="-r P"
119119

120+
# Upload diff images on test failure
121+
- name: Upload diff images if any test fails
122+
uses: actions/upload-artifact@v2
123+
if: ${{ failure() }}
124+
path: tmp-test-dir-with-unique-name
125+
120126
# Build the documentation
121127
- name: Build the documentation
122128
shell: bash -l {0}

0 commit comments

Comments
 (0)