Skip to content

Commit

Permalink
add test analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Dec 19, 2024
1 parent cdd4e38 commit f757423
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit f757423

Please sign in to comment.