mirror of
https://github.com/mvt-project/mvt.git
synced 2024-06-18 18:38:58 +00:00
Allow PR coverage comment to fail if running on a fork
This commit is contained in:
parent
1d075abde9
commit
8aaa883202
3
.github/workflows/python-package.yml
vendored
3
.github/workflows/python-package.yml
vendored
|
@ -42,8 +42,9 @@ jobs:
|
||||||
- name: Test with pytest and coverage
|
- name: Test with pytest and coverage
|
||||||
run: pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mvt tests/ | tee pytest-coverage.txt
|
run: pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mvt tests/ | tee pytest-coverage.txt
|
||||||
- name: Pytest coverage comment
|
- name: Pytest coverage comment
|
||||||
|
continue-on-error: true # Workflows running on a fork can't post comments
|
||||||
uses: MishaKav/pytest-coverage-comment@main
|
uses: MishaKav/pytest-coverage-comment@main
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
pytest-coverage-path: ./pytest-coverage.txt
|
pytest-coverage-path: ./pytest-coverage.txt
|
||||||
junitxml-path: ./pytest.xml
|
junitxml-path: ./pytest.xml
|
||||||
|
|
Loading…
Reference in New Issue
Block a user