From 51020551655c3a4d56acefc149cd25e089dc3b67 Mon Sep 17 00:00:00 2001 From: Jonas Kittner Date: Sun, 21 Apr 2024 23:54:24 +0200 Subject: [PATCH] store the image comparisons for debugging if a test fails --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f344683..a996d67 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,3 +38,10 @@ jobs: run: | pytest -s -rxs -vv -Werror tests/ --mpl --mpl-generate-summary=html \ --mpl-results-path="windrose_test_output-${{ matrix.os }}-${{ matrix.python-version }}" + - name: Store mpl-results + uses: actions/upload-artifact@v4 + if: failure() + with: + name: "windrose_test_output-${{ matrix.os }}-${{ matrix.python-version }}" + path: "windrose_test_output-${{ matrix.os }}-${{ matrix.python-version }}" + retention-days: 1