Skip to content

Commit a09240f

Browse files
committed
TST: drop pytest-cov plugin, use coverage directly
1 parent df799ca commit a09240f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/tests_conda.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
numpy>1.13.3
3737
cython>=0.29.20
3838
pytest
39-
pytest-cov
39+
coverage
4040
- name: Install unstable dependencies
4141
if: matrix.experimental == true
4242
shell: bash -l {0}
@@ -57,4 +57,5 @@ jobs:
5757
- name: Run Tests
5858
shell: bash -l {0}
5959
run: |
60-
pytest -vv test
60+
coverage run -m pytest -vv test
61+
coverage report

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ requires-python = ">=3.10"
3030
[dependency-groups]
3131
dev = [
3232
"check-manifest",
33-
"coverage",
33+
"coverage>=7.10.0",
3434
"coveralls",
3535
"cython>=0.29.20",
3636
"pytest",
37-
"pytest-cov",
3837
"sphinx",
3938
"twine",
4039
]
@@ -56,15 +55,14 @@ addopts = [
5655
"-ra",
5756
"-v",
5857
"--doctest-modules",
59-
"--cov=cftime",
60-
"--cov-report=term-missing",
6158
]
6259
doctest_optionflags = [
6360
"NORMALIZE_WHITESPACE",
6461
"ELLIPSIS",
6562
]
6663

6764
[tool.coverage.run]
65+
source = ["src"]
6866
relative_files = true
6967
branch = true
7068
plugins = [
@@ -82,6 +80,7 @@ omit = [
8280
]
8381

8482
[tool.coverage.report]
83+
show_missing = true
8584
exclude_lines = [
8685
"pragma: no cover",
8786
"def __repr__",

0 commit comments

Comments
 (0)