From a0133cd12d9571eb87c1483aec06c6358c6c267a Mon Sep 17 00:00:00 2001 From: Wei Ji Date: Tue, 27 Oct 2020 16:22:21 +1300 Subject: [PATCH] Use GitHub Action to upload diff images on test failure --- .github/workflows/ci_tests.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index 5d941d2bb3b..3b9aedb1bc1 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -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}