From 06ff2b8377b9e48a5d39d69c83072f4fc7544440 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Thu, 11 Jan 2024 21:00:54 +0100 Subject: [PATCH] increase coverage precision --- .github/workflows/coverage.yml | 1 - pyproject.toml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6acaa4a..eef9b18 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -43,7 +43,6 @@ jobs: cat <<< "$TEST_CFG" > tests/test.cfg (echo "===== tests attempt: 1 ====" && pdm run pytest) || \ (echo "===== tests attempt: 2 ====" && pdm run pytest) - pdm run pytest pdm run coverage xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/pyproject.toml b/pyproject.toml index db28899..3c89578 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,9 @@ addopts = "--verbose --cov" [tool.coverage.run] source = ["ytmusicapi"] +[tool.coverage.report] +precision = 2 + [tool.ruff] line-length = 110 ignore = [ "F403", "F405", "F821", "E731" ]