Skip to content

Commit 63fb7f9

Browse files
Bordatchatons-rogrohitgr7
authored
CI: upload report only on failer (#5086)
* CI: upload report only on failer * Apply suggestions from code review Co-authored-by: chaton <[email protected]> * Apply suggestions from code review Co-authored-by: chaton <[email protected]> Co-authored-by: Roger Shieh <[email protected]> Co-authored-by: Rohit Gupta <[email protected]>
1 parent 1e501f0 commit 63fb7f9

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/ci_test-base.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ jobs:
7676
with:
7777
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}
7878
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
79-
# Use always() to always run this step to publish test results when there are test failures
80-
if: always()
79+
if: failure()
8180

8281
- name: Statistics
8382
if: success()

.github/workflows/ci_test-conda.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,4 @@ jobs:
5050
with:
5151
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}
5252
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
53-
# Use always() to always run this step to publish test results when there are test failures
54-
if: always()
53+
if: failure()

.github/workflows/ci_test-full.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ jobs:
129129
with:
130130
name: pytest-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}
131131
path: junit/test-results-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.requires }}.xml
132-
# Use always() to always run this step to publish test results when there are test failures
133-
if: always()
132+
if: failure()
134133

135134
- name: Statistics
136135
if: success()

0 commit comments

Comments
 (0)