Skip to content

Commit

Permalink
GitHub Actions: Upgrade to codecov v4
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Mar 4, 2024
1 parent e9d4308 commit f735bcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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__" }
Expand Down

0 comments on commit f735bcc

Please sign in to comment.