-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
38 lines (35 loc) · 1.15 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
#
# See also https://tox.readthedocs.io/en/latest/config.html for more
# configuration options.
[tox]
envlist =
{py38,py39,py310}-django32,
{py38,py39,py310,py311,py312}-django42,
{py310,py311,py312}-latest,
isolated_build = true
[latest]
deps =
https://github.com/django/django/archive/main.tar.gz
https://github.com/encode/django-rest-framework/archive/master.tar.gz
https://github.com/django-json-api/django-rest-framework-json-api/archive/master.tar.gz
[testenv]
deps=
django32: django~=3.2.0
django32: djangorestframework~=3.14.0
django32: djangorestframework-jsonapi~=6.1.0
django42: django~=4.2.0
django42: djangorestframework~=3.14.0
django42: djangorestframework-jsonapi~=6.1.0
latest: {[latest]deps}
pytest
pytest-cov
pytest-mock
pytest-django
pytest-randomly
pdbpp
ipdb
commands=pytest --no-cov-on-fail --cov --create-db -vv