From 2f7723f22f90790ae8b26ef3d31e4df04051c7c7 Mon Sep 17 00:00:00 2001 From: xjules Date: Wed, 2 Oct 2024 14:13:02 +0200 Subject: [PATCH] Add workflow step to upload images when image comparisson test fails --- .github/workflows/test_ert.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test_ert.yml b/.github/workflows/test_ert.yml index 4cc6deeb0a9..3774e5d445c 100644 --- a/.github/workflows/test_ert.yml +++ b/.github/workflows/test_ert.yml @@ -46,6 +46,14 @@ jobs: run: | pytest --cov=ert --cov-report=xml:cov1.xml --junit-xml=junit.xml -o junit_family=legacy -v --mpl --benchmark-disable tests/ert/ui_tests/gui + - name: Upload artifact images + uses: actions/upload-artifact@v4 + if: ${{ failure() }} + continue-on-error: true + with: + name: test-images-${{ github.run_number }}-${{ github.run_id }} + path: /tmp/tmp*/**/*.png + - name: CLI Test if: inputs.test-type == 'cli-tests' run: |