diff --git a/.github/workflows/skore-ui.yml b/.github/workflows/skore-ui.yml index 6f1b63876..0fbdd686d 100644 --- a/.github/workflows/skore-ui.yml +++ b/.github/workflows/skore-ui.yml @@ -40,7 +40,7 @@ jobs: npm install npm run test:unit:coverage - name: Report coverage - if: always() + if: ${{ always() && ! github.event.pull_request.head.repo.fork }} uses: davelosert/vitest-coverage-report-action@v2 with: working-directory: ./skore-ui diff --git a/.github/workflows/skore.yml b/.github/workflows/skore.yml index 8201a3aa7..e92aa5136 100644 --- a/.github/workflows/skore.yml +++ b/.github/workflows/skore.yml @@ -61,6 +61,7 @@ jobs: # run coverage python -m pytest -n auto --junitxml=coverage.xml --cov=skore src/ tests/ | tee pytest-coverage.txt - name: Pytest coverage comment + if: ${{ ! github.event.pull_request.head.repo.fork }} uses: MishaKav/pytest-coverage-comment@main with: pytest-coverage-path: ./skore/pytest-coverage.txt