-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
74 lines (68 loc) · 1.41 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tox]
requires =
tox>=4.2
env_list =
django50-py{312, 311, 310}
django42-py{312, 311, 310, 39}
django41-py{311, 310, 39}
django40-py{310, 39}
django32-py{310, 39}
mypy
check-migrations
skip_missing_interpreters = true
[testenv]
description = Run tests with {basepython}
package = wheel
wheel_build_env = .pkg
deps =
django_main: {[django]main}
django32: {[django]32}
django40: {[django]40}
django41: {[django]41}
django42: {[django]42}
django50: {[django]50}
extras =
test
pass_env =
CI_RUN
PYTEST_*
TERM
commands =
pytest --ds=tests.settings --cov --no-cov-on-fail --cov-report xml --cov-report term-missing {posargs}
[testenv:mypy]
description = Run type checking with Mypy
deps =
mypy
commands =
mypy
[testenv:check-migrations]
description = Check Django migrations for any changes
set_env =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
commands =
django-admin makemigrations --check --dry-run
[testenv:dev]
description = Generate a DEV environment
package = editable
extras =
dev
commands =
python -m pip list --format=columns
python -c 'import sys; print(sys.executable)'
[pytest]
django_find_project = false
pythonpath = .
[django]
main =
https://github.com/django/django/tarball/main
50 =
Django~=5.0.1
42 =
Django~=4.2.8
41 =
Django~=4.1.13
40 =
Django~=4.0.10
32 =
Django~=3.2.23