add test analytics
This commit is contained in:
parent
cdd4e38a57
commit
f7574237be
2 changed files with 7 additions and 3 deletions
8
.github/workflows/coverage.yml
vendored
8
.github/workflows/coverage.yml
vendored
|
|
@ -44,9 +44,13 @@ jobs:
|
|||
pdm run pytest
|
||||
pdm run coverage xml
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v4
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
file: coverage.xml
|
||||
flags: unittests
|
||||
fail_ci_if_error: true
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
uses: codecov/test-results-action@v1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ include-package-data=false
|
|||
[tool.pytest.ini_options]
|
||||
python_functions = "test_*"
|
||||
testpaths = ["tests"]
|
||||
addopts = "--verbose --cov --retries 2 --retry-delay 5"
|
||||
addopts = "--verbose --cov --junitxml=junit.xml --retries 2 --retry-delay 5"
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["ytmusicapi"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue