Skip to content

Commit

Permalink
test: also test on versions of coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Dec 4, 2022
1 parent 4ebb2e4 commit 5b19217
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
6 changes: 4 additions & 2 deletions tests/banner.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@

import platform

import coverage
import django

print(
"{} {}; Django {}".format(
"{} {}; Django {}; Coverage {}".format(
platform.python_implementation(),
platform.python_version(),
django.get_version()
django.get_version(),
coverage.__version__,
)
)
19 changes: 11 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@

[tox]
envlist =
py37-django{111,22,32},
py38-django{22,32,40,41,tip},
py39-django{22,32,40,41,tip},
py310-django{32,40,41,tip},
py311-django{41,tip},
py37-django{111,22,32}-cov{5,6,tip},
py38-django{22,32,40,41,tip}-cov{5,6,tip},
py39-django{22,32,40,41,tip}-cov{5,6,tip},
py310-django{32,40,41,tip}-cov{5,6,tip},
py311-django{41,tip}-cov{6,tip},
check,pkgcheck,doc

[testenv]
deps =
pytest
unittest-mixins==1.6
cov5: coverage>=5.0,<6.0
cov6: coverage>=6.0,<7.0
covtip: git+https://github.com/nedbat/coveragepy.git
django111: Django>=1.11,<2.0
django22: Django>=2.2,<3.0
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
djangotip: https://github.com/django/django/archive/main.tar.gz
djangotip: git+https://github.com/django/django.git
pytest
unittest-mixins==1.6

commands =
python -c "import tests.banner"
Expand Down

0 comments on commit 5b19217

Please sign in to comment.