-
Notifications
You must be signed in to change notification settings - Fork 106
/
Copy pathtox.ini
56 lines (47 loc) · 1.25 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
[tox]
isolated_build = True
envlist =
{3.12,3.13}-djmain
{3.10,3.11,3.12,3.13,pypy310}-dj{5.0,5.1}
{3.9,3.10,3.11,3.12,3.13,pypy39,pypy310}-dj4.2
{3.9,3.10,3.11,3.12,3.13,pypy39,pypy310}-types
# Don't run coverage when testing with pypy:
# see https://github.com/nedbat/coveragepy/issues/1382
[testenv:pypy{39,310}-dj4.2,pypy310-dj{5.0,5.1}]
commands =
pytest {toxinidir}/csp
[testenv:{3.9,3.10,3.11,3.12,3.13,pypy39,pypy310}-types]
commands =
mypy --cache-dir {temp_dir}/.mypy_cache {toxinidir}/csp
[testenv]
extras = dev, tests, typing, jinja2
setenv =
PYTHONPATH={toxinidir}
PYTHONDONTWRITEBYTECODE=1
commands =
pytest --cov={toxinidir}/csp {toxinidir}/csp
basepython =
3.9: python3.9
3.10: python3.10
3.11: python3.11
3.12: python3.12
3.13: python3.13
pypy39: pypy3.9
pypy310: pypy3.10
deps =
pytest
dj4.2: Django>=4.2,<4.3
dj5.0: Django>=5.0.1,<5.1
dj5.1: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
[gh-actions]
# Running tox in GHA without redefining it all in a GHA matrix:
# https://github.com/ymyzk/tox-gh-actions
python =
3.9: 3.9
3.10: 3.10
3.11: 3.11
3.12: 3.12
3.13: 3.13
pypy-3.9: pypy39
pypy-3.10: pypy310