Skip to content

Commit

Permalink
On PR and main
Browse files Browse the repository at this point in the history
  • Loading branch information
adyanth committed Oct 18, 2024
1 parent c26fc64 commit 9928125
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Python Test

on:
push:
branches:
- 'main'
pull_request:
branches:
- '*'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9928125

Please sign in to comment.