Skip to content

Commit 6990d58

Browse files
authored
Update collecting test coverage (#81)
1 parent 2115178 commit 6990d58

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,18 @@ jobs:
4949
5050
- name: Tests
5151
run: |
52-
poetry run coverage run -m pytest src --cov-config=.coveragerc --junit-xml=junit/test-results.xml --cov-report=html --cov-report=xml
52+
poetry run coverage run -m pytest src --cov-config=.coveragerc
5353
54-
- name: Tests Coverage
54+
- name: Tests coverage
5555
run: |
5656
poetry run coverage html
5757
poetry run coverage xml
5858
poetry run coverage report --show-missing
5959
60-
# Upload your code coverage here
61-
# - name: Upload codecov
62-
# uses: codecov/codecov-action@v1
63-
# with:
64-
# fail_ci_if_error: true
60+
# Requires CODECOV_TOKEN in repository secrets
61+
- name: Upload codecov
62+
uses: codecov/codecov-action@v3
63+
with:
64+
token: ${{ secrets.CODECOV_TOKEN }} # Only required for private repositories
65+
file: ./coverage.xml
66+
fail_ci_if_error: true

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test:
3333
poetry run pytest src
3434

3535
test_cov:
36-
poetry run coverage run -m pytest src --cov-config=.coveragerc --junit-xml=junit/test-results.xml --cov-report=html --cov-report=xml
36+
poetry run coverage run -m pytest src --cov-config=.coveragerc
3737
poetry run coverage html
3838
poetry run coverage xml
3939
poetry run coverage report --show-missing

0 commit comments

Comments
 (0)