tox: add test environments relying on djangorestframework 3.12 (#64289)

This commit is contained in:
Paul Marillonnet 2022-04-19 11:52:17 +02:00 committed by Frédéric Péters
parent 45d0cca338
commit 671b96294e
1 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,10 @@
# and then run "tox" from this directory.
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/hobo/{env:BRANCH_NAME:}
envlist = py3-django22-coverage-{hobo,multipublik,multitenant,schemas,authentic,passerelle},py3-black
envlist =
py3-django22-drf39-{hobo,multipublik,multitenant,schemas,authentic,passerelle}
py3-django22-drf312-coverage-{hobo,multipublik,multitenant,schemas,authentic,passerelle}
py3-black
[testenv]
usedevelop = True
@ -31,6 +34,8 @@ setenv =
coverage: COVERAGE=--cov-report xml:coverage-{envname}.xml --cov-report html:htmlcov-{envname} --cov=hobo/ --cov-config .coveragerc
fast: NOMIGRATIONS=--nomigrations
deps:
drf39: djangorestframework>=3.9.2,<3.10
drf312: djangorestframework>=3.12,<3.13
django22: django>=2.2,<2.3
pytest!=6.0.0
pytest-cov