Skip to content

Commit f735bcc

Browse files
committed
GitHub Actions: Upgrade to codecov v4
1 parent e9d4308 commit f735bcc

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,12 @@ jobs:
3131
if: matrix.optional-dependencies == 'optional-deps'
3232
run: pip install -e .[optional]
3333
- name: Run tests and generate coverage report
34-
run: coverage run
34+
run: pytest --cov=./ --cov-report=xml
3535
- name: Upload coverage to Codecov
36-
uses: codecov/codecov-action@v3
37-
env:
38-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
36+
uses: codecov/codecov-action@v4
3937
with:
4038
env_vars: OS,PYTHON,DJANGO
41-
name: codecov-umbrella
4239
fail_ci_if_error: true
40+
name: codecov-umbrella
41+
token: ${{ secrets.CODECOV_TOKEN }}
4342
verbose: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"django-phonenumber-field[phonenumbers]",
5656
"psycopg2-binary",
5757
]
58-
test = ["coverage", "pytest", "pytest-icdiff", "requests-mock"]
58+
test = ["coverage", "pytest", "pytest-cov", "pytest-icdiff", "requests-mock"]
5959

6060
[tool.setuptools.dynamic]
6161
version = { attr = "sphinxcontrib_django.__version__" }

0 commit comments

Comments
 (0)