Skip to content

Commit fc084af

Browse files
committed
fix: report test coverage only from main branch
1 parent f3ed18a commit fc084af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/python-lib.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ jobs:
2929
- name: Check files
3030
run: poetry run pre-commit run --all-files
3131
- name: Report test coverage to Code Climate
32-
uses: paambaati/codeclimate-action@v3.2.0
32+
uses: paambaati/codeclimate-action@v5.0.0
3333
env:
3434
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
3535
with:
3636
coverageLocations: coverage.xml:coverage.py
37+
if: github.ref == 'refs/heads/main'
3738
- name: Build and release to PyPi
3839
run: |
3940
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)