File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 3333 poetry run pytest src
3434
3535test_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
You can’t perform that action at this time.
0 commit comments