From 8aaa8832026b59a166f58de0efa63ab63bea9586 Mon Sep 17 00:00:00 2001 From: Rory Flynn <75283103+roaree@users.noreply.github.com> Date: Mon, 27 Nov 2023 12:33:23 +0100 Subject: [PATCH] Allow PR coverage comment to fail if running on a fork --- .github/workflows/python-package.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index caaba95..25ef425 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 \ No newline at end of file + junitxml-path: ./pytest.xml