-
Notifications
You must be signed in to change notification settings - Fork 111
/
tox.ini
42 lines (40 loc) · 1.1 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
; tox is just used for testing the python/django matrix locally
[tox]
isolated_build = True
envlist =
py{39}-django{22,30,31}-{postgresql,sqlite}
py{39,310}-django{32,40}-{postgresql,sqlite}
py{39,310,311}-django{41}-{postgresql,sqlite}
py{39,310,311,312}-django{42}-{postgresql,sqlite}
py{310,311,312}-django{50}-{postgresql,sqlite}
py{310,311,312,313}-django{51}-{postgresql,sqlite}
py{39,310,311,312}-flake8
[testenv]
passenv =
postgresql: POSTGRES_USER POSTGRES_PASSWORD
setenv =
PYTHONPATH = {toxinidir}
deps =
coverage[toml]~=7.0
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
-rtests-requirements.txt
commands =
python --version
pip list
coverage run -m pytest -v
coverage report
[testenv:py{39,310,311,312}-flake8]
skip_install = True
deps = flake8
commands =
python --version
pip list
flake8 -v src tests docs