ci(coverge): upload coverage if tests fail (#1442)

This commit is contained in:
ReenigneArcher 2024-08-05 20:05:40 -04:00 committed by GitHub
parent c28c7bf384
commit d5604670d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 }}