-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
69 lines (62 loc) · 2.13 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
[tox]
isolated_build = True
envlist =
py{37}-django{22}-drf{38,39,310,311,312,313}
py{37}-django{32}-drf{311,312,313,314}
py{38}-django{22}-drf{38,39,310,311,312,313}
py{38}-django{32}-drf{311,312,313,314}
py{38}-django{40}-drf{313,314}
py{38}-django{41}-drf{314}
py{38}-django{42}-drf{314}
py{39}-django{22}-drf{38,39,310,311,312,313}
py{39}-django{32}-drf{311,312,313,314}
py{39}-django{40}-drf{313,314}
py{39}-django{41}-drf{314}
py{39}-django{42}-drf{314}
py{310}-django{22}-drf{38,39,310,311,312,313}
py{310}-django{32}-drf{311,312,313,314}
py{310}-django{40}-drf{313,314}
py{310}-django{41}-drf{314}
py{310}-django{42}-drf{314}
py{311}-django{22}-drf{38,39,310,311,312,313}
py{311}-django{32}-drf{311,312,313,314}
py{311}-django{40}-drf{313,314}
py{311}-django{41}-drf{314}
py{311}-django{42}-drf{314}
[gh-actions]
# Mapping of Python versions (MAJOR.MINOR) to Tox factors.
# When running Tox inside GitHub Actions, the `tox-gh-actions` plugin automatically:
# 1. Identifies the Python version used to run Tox.
# 2. Determines the corresponding Tox factor for that Python version, based on the `python` mapping below.
# 3. Narrows down the Tox `envlist` to environments that match the factor.
# For more details, please see the `tox-gh-actions` README [0] and architecture documentation [1].
# [0] https://github.com/ymyzk/tox-gh-actions/tree/v2.8.1
# [1] https://github.com/ymyzk/tox-gh-actions/blob/v2.8.1/ARCHITECTURE.md
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
deps =
django-debug-toolbar>=1.0.0
pytest>=2.7
pytest-django>=3.4
pytest-mock>=1.10
drf38: djangorestframework~=3.8
drf39: djangorestframework~=3.9
drf310: djangorestframework~=3.10
drf311: djangorestframework~=3.11
drf312: djangorestframework~=3.12
drf313: djangorestframework~=3.13
drf314: djangorestframework~=3.14
django22: Django~=2.2
django32: Django~=3.2
django40: Django~=4.0
django41: Django~=4.1
django42: Django~=4.2
redis>=3.0
django-redis>=4.0
commands =
py.test {posargs}