diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index d7fa886..3c641ca 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -37,9 +37,5 @@ jobs: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: | - pytest - - name: Build coverage file - run: | - pytest --cache-clear --cov=app test/ > pytest-coverage.txt - - name: Comment coverage - uses: coroo/pytest-coverage-commentator@v1.0.2 + coverage run -m pytest + coverage report -m diff --git a/pyproject.toml b/pyproject.toml index ee57da1..98aae50 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,10 +17,10 @@ dependencies = [ [project.optional-dependencies] test = [ "black", + "coverage", "flake8", "isort", "pytest", - "pytest-cov", "radon", "flake8_polyfill", "coverage",