mirror of https://github.com/mvt-project/mvt.git
Allow PR coverage comment to fail if running on a fork (#427)
This commit is contained in:
parent
1d075abde9
commit
c8a0327768
|
@ -42,8 +42,9 @@ jobs:
|
|||
- name: Test with pytest and coverage
|
||||
run: pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mvt tests/ | tee pytest-coverage.txt
|
||||
- name: Pytest coverage comment
|
||||
continue-on-error: true # Workflows running on a fork can't post comments
|
||||
uses: MishaKav/pytest-coverage-comment@main
|
||||
if: github.event_name == 'pull_request'
|
||||
with:
|
||||
pytest-coverage-path: ./pytest-coverage.txt
|
||||
junitxml-path: ./pytest.xml
|
||||
junitxml-path: ./pytest.xml
|
||||
|
|
Loading…
Reference in New Issue