mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-10 06:04:15 +00:00
ci(coverge): upload coverage if tests fail (#1442)
This commit is contained in:
parent
c28c7bf384
commit
d5604670d5
1 changed files with 2 additions and 0 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue