Skip to content

Commit 413ff77

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci_tests.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ 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+
with:
125+
path: tmp-test-dir-with-unique-name
126+
120127
# Build the documentation
121128
- name: Build the documentation
122129
shell: bash -l {0}

0 commit comments

Comments
 (0)