summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2022-04-20 10:11:35 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2022-04-20 10:14:21 (GMT)
commitda41d0b6bd4d6f102d9dbe2f22388c47441df0bb (patch)
tree72d9b5cdd0bfc109bd92769e232f540582b37779
parente2934f92c6143af8232ec0767da0c489bb1f1e8d (diff)
downloadwelco-wip/64290-add-support-for-drf-312.zip
welco-wip/64290-add-support-for-drf-312.tar.gz
welco-wip/64290-add-support-for-drf-312.tar.bz2
tox: add test environments relying on djangorestframework 3.12 (#64290)v0.85wip/64290-add-support-for-drf-312
-rw-r--r--tox.ini6
1 files changed, 5 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 616cd45..90c8887 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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/}