Skip to content

Commit 8170370

Browse files
committed
ci: try fix pr coverage
1 parent f3aa8ac commit 8170370

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ jobs:
5252
test:
5353
name: "test ${{ matrix.python-version }}"
5454
runs-on: ${{ matrix.os }}
55-
permissions:
56-
issues: write
57-
pull-requests: write
5855
strategy:
5956
matrix:
6057
os:
@@ -93,8 +90,8 @@ jobs:
9390

9491
- name: Test coverage comment
9592
uses: MishaKav/pytest-coverage-comment@main
93+
if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') || github.event_name == 'pull_request' && github.base_ref == 'master'
9694
with:
97-
github-token: ${{ secrets.GITHUB_TOKEN }}
9895
pytest-xml-coverage-path: ./coverage.xml
9996
junitxml-path: ./junitxml.xml
10097
junitxml-title: ${{ matrix.python-version }}

0 commit comments

Comments
 (0)