Skip to content

Commit 64a0188

Browse files
authored
Merge pull request #169 from esa/fixing-coverage-workflow
Fixing coverage workflow
2 parents e266374 + 6cd7fa0 commit 64a0188

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/run_tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ jobs:
2727
2828
build:
2929
runs-on: ubuntu-latest
30-
30+
permissions:
31+
pull-requests: write
32+
contents: read
33+
id-token: write
3134
steps:
3235
- uses: actions/checkout@v2
3336
- name: Set up Python 3.9
@@ -58,6 +61,7 @@ jobs:
5861
pytest -ra --error-for-skips --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=../../torchquad . | tee pytest-coverage.txt
5962
- name: pytest coverage comment
6063
uses: MishaKav/pytest-coverage-comment@main
64+
if: github.event_name == 'pull_request'
6165
with:
6266
pytest-coverage-path: ./torchquad/tests/pytest-coverage.txt
6367
title: Coverage Report

0 commit comments

Comments
 (0)