forked from City-of-Helsinki/django-orghierarchy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
36 lines (32 loc) · 1.01 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
[tox]
envlist =
py38-django{32,40,41,42}
py39-django{32,40,41,42}
py310-django{32,40,41,42,main}
py311-django{40,41,42,main}
py312-django{40,41,42,main}
[testenv]
description = run unit tests
commands =
pytest -m "not integration_test" {posargs}
pytest -m custom_ds --ds=tests.test_app.settings_custom_ds {posargs}
pytest -m custom_pk_ds --ds=tests.test_app.settings_custom_pk_ds {posargs}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
# Use constraints to ensure that the Django version doesn't get overridden when installing
# package requirements, e.g. DRF might override it.
constrain_package_deps = true
deps =
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
djangomain: https://github.com/django/django/archive/main.tar.gz
-rrequirements.txt
[testenv:py310-djangomain]
ignore_outcome = true
[testenv:py311-djangomain]
ignore_outcome = true
[testenv:py312-djangomain]
ignore_outcome = true