Skip to content

Commit 5b19217

Browse files
committed
test: also test on versions of coverage
1 parent 4ebb2e4 commit 5b19217

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

tests/banner.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55

66
import platform
77

8+
import coverage
89
import django
910

1011
print(
11-
"{} {}; Django {}".format(
12+
"{} {}; Django {}; Coverage {}".format(
1213
platform.python_implementation(),
1314
platform.python_version(),
14-
django.get_version()
15+
django.get_version(),
16+
coverage.__version__,
1517
)
1618
)

tox.ini

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,26 @@
1414

1515
[tox]
1616
envlist =
17-
py37-django{111,22,32},
18-
py38-django{22,32,40,41,tip},
19-
py39-django{22,32,40,41,tip},
20-
py310-django{32,40,41,tip},
21-
py311-django{41,tip},
17+
py37-django{111,22,32}-cov{5,6,tip},
18+
py38-django{22,32,40,41,tip}-cov{5,6,tip},
19+
py39-django{22,32,40,41,tip}-cov{5,6,tip},
20+
py310-django{32,40,41,tip}-cov{5,6,tip},
21+
py311-django{41,tip}-cov{6,tip},
2222
check,pkgcheck,doc
2323

2424
[testenv]
2525
deps =
26-
pytest
27-
unittest-mixins==1.6
26+
cov5: coverage>=5.0,<6.0
27+
cov6: coverage>=6.0,<7.0
28+
covtip: git+https://github.com/nedbat/coveragepy.git
2829
django111: Django>=1.11,<2.0
2930
django22: Django>=2.2,<3.0
3031
django32: Django>=3.2,<4.0
3132
django40: Django>=4.0,<4.1
3233
django41: Django>=4.1,<4.2
33-
djangotip: https://github.com/django/django/archive/main.tar.gz
34+
djangotip: git+https://github.com/django/django.git
35+
pytest
36+
unittest-mixins==1.6
3437

3538
commands =
3639
python -c "import tests.banner"

0 commit comments

Comments
 (0)