From 5b0664289ca9d1ee8629bdbedf121c24c17cb3c4 Mon Sep 17 00:00:00 2001 From: Giuseppe Ambrosio Date: Fri, 10 Jan 2025 11:20:57 +0100 Subject: [PATCH] fix: conditionally run pytest coverage comment for non-main branches --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf7c439..554848f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,6 @@ on: pull_request: workflow_dispatch: env: - DOCKER_BUILDKIT: 1 UV_SYSTEM_PYTHON: 1 jobs: Run-test: @@ -36,6 +35,7 @@ jobs: - name: Run test run: make test - name: Pytest coverage comment + if: ${{ github.ref_name != 'main' }} uses: MishaKav/pytest-coverage-comment@main with: pytest-xml-coverage-path: ./tests/coverage.xml