From d5604670d5b7f7ff9c882e41f6882454a9b4e4e0 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Mon, 5 Aug 2024 20:05:40 -0400 Subject: [PATCH] ci(coverge): upload coverage if tests fail (#1442) --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2492c459..2bbff8f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -182,6 +182,7 @@ jobs: - name: Main tests with ${{ matrix.plex }} server env: TEST_ACCOUNT_ONCE: ${{ matrix.plex == 'unclaimed' }} + id: test run: | . venv/bin/activate pytest \ @@ -200,6 +201,7 @@ jobs: python -u tools/plex-teardowntest.py - name: Upload coverage artifact + if: always() && (steps.test.outcome == 'success' || steps.test.outcome == 'failure') uses: actions/upload-artifact@v4 with: name: coverage-${{ matrix.plex }}-${{ steps.python.outputs.python-version }}