-
Notifications
You must be signed in to change notification settings - Fork 87
/
Copy pathtox.ini
34 lines (27 loc) · 875 Bytes
/
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
# Tox (http://tox.testrun.org/) 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.
[tox]
envlist =
{py39,py310,py311,py312}-django-42
{py310,py311,py312,py313}-django-51
{py313}-django-main
[testenv]
setenv =
PYTHONPATH = {toxinidir}
commands = pytest --cov=dynamic_preferences {posargs}
deps =
django-{42,51,main}: djangorestframework>=3.13,<4
django-42: Django>=4.2,<5.0
django-51: Django>=5.1,<6.0
django-main: https://github.com/django/django/archive/main.tar.gz
-r{toxinidir}/requirements-test.txt
basepython =
py313: python3.13
py312: python3.12
py311: python3.11
py310: python3.10
py39: python3.9
[testenv:py313-django-main]
ignore_outcome = true