Skip to content

Commit 6aaa903

Browse files
committed
Upload coverage artifacts only when event == 'pull_request'
1 parent 0a36e7f commit 6aaa903

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
python -m pytest -n auto --junitxml=coverage/coverage.xml --cov=skore src/ tests/ | tee coverage/coverage.txt
9191
9292
- name: Upload coverage reports
93-
if: ${{ matrix.coverage }}
93+
if: ${{ matrix.coverage && (github.event_name == 'pull_request') }}
9494
uses: actions/upload-artifact@v4
9595
with:
9696
name: backend-coverage

.github/workflows/frontend.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
npm run test:unit:coverage
6464
6565
- name: Upload coverage reports
66+
if: ${{ github.event_name == 'pull_request' }}
6667
uses: actions/upload-artifact@v4
6768
with:
6869
name: frontend-coverage

0 commit comments

Comments
 (0)