From ecf75447aab661a684731ef76d0db6ad1e1cade4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donncha=20=C3=93=20Cearbhaill?= Date: Thu, 27 Jul 2023 17:44:18 +0200 Subject: [PATCH] Only add coverage comment to pull requests --- .github/workflows/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 60fdef9..caaba95 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -43,6 +43,7 @@ jobs: run: pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=mvt tests/ | tee pytest-coverage.txt - name: Pytest coverage comment 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