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

This commit is contained in:
Serghei Mihai 2022-04-20 12:11:35 +02:00
parent e2934f92c6
commit da41d0b6bd
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,7 @@
[tox]
envlist = py3-django22-black-coverage-pylint
envlist =
py3-django22-black-coverage-pylint-drf39
py3-django22-black-coverage-pylint-drf312
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/welco/{env:BRANCH_NAME:}
[testenv]
@ -27,6 +29,8 @@ deps =
lxml
git+https://git.entrouvert.org/debian/django-ckeditor.git
black: pre-commit
drf39: djangorestframework>=3.9.2,<3.10
drf312: djangorestframework>=3.12,<3.13
commands =
pylint: ./pylint.sh welco/
py.test {env:COVERAGE:} {posargs:tests/}