From 0de5b690ce65fa0c5f73ca16c04bec27c8243285 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Fri, 10 May 2024 12:48:54 +0200 Subject: [PATCH] upload snapshot report first --- .github/workflows/pytest.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1edebb0b5c..4e873385e8 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -142,18 +142,18 @@ jobs: exit 1 fi - - name: Upload coverage + - name: Store snapshot report uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4 + if: always() with: - name: coverage_${{ matrix.test }} - path: .coverage + name: Snapshot Report ${{ matrix.test }} + path: ./snapshot_report.html - - name: Store snapshot report on failure + - name: Upload coverage uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4 - if: ${{matrix.test}} == "test_create_app.py" && always() with: - name: Snapshot Report ${{ matrix.test }} - path: ./snapshot_report.html + name: coverage_${{ matrix.test }} + path: .coverage coverage: needs: test