diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0a96194..8780a5b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,13 +31,12 @@ jobs: if: matrix.optional-dependencies == 'optional-deps' run: pip install -e .[optional] - name: Run tests and generate coverage report - run: coverage run + run: pytest --cov=./ --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 with: env_vars: OS,PYTHON,DJANGO - name: codecov-umbrella fail_ci_if_error: true + name: codecov-umbrella + token: ${{ secrets.CODECOV_TOKEN }} verbose: true diff --git a/pyproject.toml b/pyproject.toml index 73bcbd5..85c9fde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ "django-phonenumber-field[phonenumbers]", "psycopg2-binary", ] - test = ["coverage", "pytest", "pytest-icdiff", "requests-mock"] + test = ["coverage", "pytest", "pytest-cov", "pytest-icdiff", "requests-mock"] [tool.setuptools.dynamic] version = { attr = "sphinxcontrib_django.__version__" }