Uploads test report only on test failures
Browse filesReduces unnecessary artifact uploads by restricting test report uploads to failed test runs, helping to focus on actionable feedback and optimize storage usage.
- .github/workflows/ci.yml +1 -1
.github/workflows/ci.yml
CHANGED
|
@@ -47,7 +47,7 @@ jobs:
|
|
| 47 |
pytest tests/unit/ -v -m unit --html=report.html --self-contained-html
|
| 48 |
|
| 49 |
- name: Upload Test Report
|
| 50 |
-
if:
|
| 51 |
uses: actions/upload-artifact@v4
|
| 52 |
with:
|
| 53 |
name: test-report
|
|
|
|
| 47 |
pytest tests/unit/ -v -m unit --html=report.html --self-contained-html
|
| 48 |
|
| 49 |
- name: Upload Test Report
|
| 50 |
+
if: failure()
|
| 51 |
uses: actions/upload-artifact@v4
|
| 52 |
with:
|
| 53 |
name: test-report
|