Upload test coverage reports solely after merging

Related #1097
This commit is contained in:
MattHag 2024-09-25 23:01:56 +02:00 committed by Peter F. Patel-Schneider
parent 4aada31b21
commit 32fef49ff8
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ jobs:
make test make test
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v4.5.0 uses: codecov/codecov-action@v4.5.0
with: with:
directory: ./coverage/reports/ directory: ./coverage/reports/
@ -67,6 +68,7 @@ jobs:
run: | run: |
export DYLD_LIBRARY_PATH=$(brew --prefix hidapi)/lib:$DYLD_LIBRARY_PATH && pytest --cov --cov-report=xml export DYLD_LIBRARY_PATH=$(brew --prefix hidapi)/lib:$DYLD_LIBRARY_PATH && pytest --cov --cov-report=xml
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v4.5.0 uses: codecov/codecov-action@v4.5.0
with: with:
directory: ./coverage/reports/ directory: ./coverage/reports/