Skip to content

Commit 5bceba7

Browse files
committed
Skip Tests done step on workflow cancel
1 parent 5663332 commit 5bceba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
6161
- name: Upload coverage results
6262
uses: actions/upload-artifact@v6
63-
if: always()
63+
if: success() || failure()
6464
with:
6565
name: coverage-${{ matrix.python-version }}-os-${{ matrix.os }}
6666
path: reports/*
@@ -71,6 +71,7 @@ jobs:
7171
name: Tests done
7272
runs-on: ubuntu-latest
7373
needs: [tests]
74+
if: success() || failure()
7475

7576
steps:
7677
- name: Checkout code
@@ -85,7 +86,6 @@ jobs:
8586

8687
- name: Show test results
8788
uses: mikepenz/action-junit-report@v5
88-
if: always()
8989
with:
9090
report_paths: reports/junit/*.xml
9191

0 commit comments

Comments
 (0)