From 1db5d918c670794e41bc88893a0e49f3c9ff73b3 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:33:17 -0400 Subject: [PATCH] ci(coverge): upload coverage if tests fail --- .github/workflows/ci.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ca5734152..b85559d7c 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 \ @@ -199,6 +200,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 }}