Skip to content

Commit b6179ec

Browse files
authored
Merge pull request #241 from harikitech/topic/re_enable_codecov
Re enable codecov
2 parents 8e290b9 + ea4bf70 commit b6179ec

File tree

4 files changed

+42
-17
lines changed

4 files changed

+42
-17
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
enable-cache: true
2727
- name: Install dependencies
28-
run: uv sync --extra dev
28+
run: uv sync --dev
2929
- name: Lint (ruff format --check)
3030
run: uv run ruff format --check
3131
- name: Lint (ruff check)
@@ -54,7 +54,12 @@ jobs:
5454
enable-cache: true
5555
- name: Install dependencies
5656
run: |
57-
uv sync --extra dev
57+
uv sync --dev
5858
uv pip install "django~=${{ matrix.django-version }}"
5959
- name: Test (pytest)
60-
run: uv run pytest -v
60+
run: uv run pytest --verbose --cov=./django_elastipymemcache --cov-report=xml
61+
- name: Upload test results to Codecov
62+
if: ${{ matrix.python-version == '3.14' && matrix.django-version == '5.2' }}
63+
uses: codecov/codecov-action@v5
64+
with:
65+
token: ${{ secrets.CODECOV_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# django-elastipymemcache
22

3-
[![Coverage](https://codecov.io/gh/harikitech/django-elastipymemcache/branch/master/graph/badge.svg)](https://codecov.io/gh/harikitech/django-elastipymemcache)
3+
[![codecov](https://codecov.io/github/harikitech/django-elastipymemcache/graph/badge.svg?token=QJGzpfbkCv)](https://codecov.io/github/harikitech/django-elastipymemcache)
44

55
## Overview
66

pyproject.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,22 @@ classifiers = [
3030
"Operating System :: OS Independent",
3131
]
3232
dependencies = [
33-
"pymemcache>=4.0",
3433
"Django>=4.2",
34+
"pymemcache>=4.0",
3535
]
3636
dynamic = [
3737
"version",
3838
]
3939

40-
[project.optional-dependencies]
40+
[dependency-groups]
4141
dev = [
42+
"coverage[toml]>=7.11",
43+
"django-stubs[compatible-mypy]>=4.2",
44+
"mypy>=1.18",
4245
"pytest>=8.0",
46+
"pytest-cov>=7.0.0",
4347
"pytest-django>=4.11",
44-
"coverage[toml]>=7.11",
4548
"ruff>=0.14.1",
46-
"mypy>=1.18",
47-
"django-stubs[compatible-mypy]>=4.2",
4849
]
4950

5051
[tool.pytest.ini_options]

uv.lock

Lines changed: 27 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)