From ec884c22102fcea9a950cfca6bbd42252aed07c9 Mon Sep 17 00:00:00 2001 From: DraftMan Date: Tue, 30 Jul 2024 18:18:29 +0200 Subject: [PATCH] fix: cov --- .github/workflows/ci.yml | 2 +- .gitignore | 3 ++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1324d95..ced17dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: echo "TOKEN=${{ secrets.BLAGUES_API_TOKEN }}" > .env - name: Run tests - run: poetry run pytest --cov-report=xml + run: poetry run pytest --cov --cov-report=xml - name: Upload coverage uses: codecov/codecov-action@v4.0.1 diff --git a/.gitignore b/.gitignore index 5ecec2c..59294d3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ dist/ poetry.lock .env .pytest_cache/ -.venv/ \ No newline at end of file +.venv/ +coverage.xml \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 2b2042a..91e108c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ flake8 = "^7.1.0" flake8-pyproject = "^1.2.3" black = "^24.4.2" isort = "^5.13.2" -coverage = "^6.2" +pytest-cov = "^5.0.0" [build-system] requires = ["poetry-core>=1.0.0"]