Skip to content

Commit d560467

Browse files
ci(coverge): upload coverage if tests fail (#1442)
1 parent c28c7bf commit d560467

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ jobs:
182182
- name: Main tests with ${{ matrix.plex }} server
183183
env:
184184
TEST_ACCOUNT_ONCE: ${{ matrix.plex == 'unclaimed' }}
185+
id: test
185186
run: |
186187
. venv/bin/activate
187188
pytest \
@@ -200,6 +201,7 @@ jobs:
200201
python -u tools/plex-teardowntest.py
201202
202203
- name: Upload coverage artifact
204+
if: always() && (steps.test.outcome == 'success' || steps.test.outcome == 'failure')
203205
uses: actions/upload-artifact@v4
204206
with:
205207
name: coverage-${{ matrix.plex }}-${{ steps.python.outputs.python-version }}

0 commit comments

Comments
 (0)