Pamela Fox
commited on
Update check.yaml
Browse files
.github/workflows/check.yaml
CHANGED
@@ -44,6 +44,7 @@ jobs:
|
|
44 |
python3 -m pytest --cov-report=xml:coverage.xml --junitxml=pytest.xml
|
45 |
- name: Pytest coverage comment
|
46 |
uses: MishaKav/pytest-coverage-comment@main
|
|
|
47 |
with:
|
48 |
pytest-coverage-path: ./pytest-coverage.xml
|
49 |
junitxml-path: ./pytest.xml
|
|
|
44 |
python3 -m pytest --cov-report=xml:coverage.xml --junitxml=pytest.xml
|
45 |
- name: Pytest coverage comment
|
46 |
uses: MishaKav/pytest-coverage-comment@main
|
47 |
+
if: github.event_name == 'pull_request'
|
48 |
with:
|
49 |
pytest-coverage-path: ./pytest-coverage.xml
|
50 |
junitxml-path: ./pytest.xml
|