antofra10 commited on
Commit
d2fd1ac
·
1 Parent(s): 3865776

Uploads test report only on test failures

Browse files

Reduces unnecessary artifact uploads by restricting test report uploads to failed test runs, helping to focus on actionable feedback and optimize storage usage.

Files changed (1) hide show
  1. .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: always() # Upload report even if tests fail
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