From 99281256ad716f79238eaecb74762498e9c91f46 Mon Sep 17 00:00:00 2001 From: Adyanth Hosavalike Date: Fri, 18 Oct 2024 23:32:15 +0530 Subject: [PATCH] On PR and main --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5b3324c..a77c1c9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,6 +1,9 @@ name: Python Test on: + push: + branches: + - 'main' pull_request: branches: - '*' @@ -33,7 +36,7 @@ jobs: run: python -m pytest --junitxml=pytest.xml --cov=main --cov-report=xml:coverage.xml | tee pytest-coverage.txt - name: Pytest coverage comment uses: MishaKav/pytest-coverage-comment@main - if: ${{ matrix.python-version }} == "3.13" + if: github.event_name == 'pull_request' && ${{ matrix.python-version }} == "3.13" with: pytest-coverage-path: ./pytest-coverage.txt pytest-xml-coverage-path: ./coverage.xml