increase coverage precision
This commit is contained in:
parent
2c707f206a
commit
06ff2b8377
2 changed files with 3 additions and 1 deletions
1
.github/workflows/coverage.yml
vendored
1
.github/workflows/coverage.yml
vendored
|
|
@ -43,7 +43,6 @@ jobs:
|
||||||
cat <<< "$TEST_CFG" > tests/test.cfg
|
cat <<< "$TEST_CFG" > tests/test.cfg
|
||||||
(echo "===== tests attempt: 1 ====" && pdm run pytest) || \
|
(echo "===== tests attempt: 1 ====" && pdm run pytest) || \
|
||||||
(echo "===== tests attempt: 2 ====" && pdm run pytest)
|
(echo "===== tests attempt: 2 ====" && pdm run pytest)
|
||||||
pdm run pytest
|
|
||||||
pdm run coverage xml
|
pdm run coverage xml
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,9 @@ addopts = "--verbose --cov"
|
||||||
[tool.coverage.run]
|
[tool.coverage.run]
|
||||||
source = ["ytmusicapi"]
|
source = ["ytmusicapi"]
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
precision = 2
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
line-length = 110
|
line-length = 110
|
||||||
ignore = [ "F403", "F405", "F821", "E731" ]
|
ignore = [ "F403", "F405", "F821", "E731" ]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue