File tree Expand file tree Collapse file tree 2 files changed +3
-32
lines changed
Expand file tree Collapse file tree 2 files changed +3
-32
lines changed Original file line number Diff line number Diff line change 11name : Python
22
3- on :
4- pull_request :
3+ on : [push, pull_request]
54
65permissions :
76 contents : read
@@ -26,13 +25,15 @@ jobs:
2625 poetry run pytest --junitxml=/tmp/pytest.xml --cov-report=term-missing:skip-covered --cov=descope tests/ --cov-report=xml:/tmp/cov.xml
2726
2827 - name : Post Pytest coverage comment
28+ if : ${{ github.event_name == 'pull_request' }}
2929 id : coverageComment
3030 uses : MishaKav/pytest-coverage-comment@main
3131 with :
3232 pytest-xml-coverage-path : /tmp/cov.xml
3333 create-new-comment : false
3434
3535 - name : Coverage
36+ if : ${{ github.event_name == 'pull_request' }}
3637 run : |
3738 echo "Coverage Percantage - ${{ steps.coverageComment.outputs.coverage }}"
3839 echo "Coverage Color - ${{ steps.coverageComment.outputs.color }}"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments