forked from romgar/django-dirtyfields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
40 lines (38 loc) · 1.02 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
; tox is just used for testing the python/django matrix locally
[tox]
isolated_build = True
envlist =
py{37}-django{20,21}-{postgresql,sqlite}
py{37,38,39}-django{22,30,31}-{postgresql,sqlite}
py{37,38,39,310}-django{32}-{postgresql,sqlite}
py{38,39,310}-django{40}-{postgresql,sqlite}
py{38,39,310,311}-django{41}-{postgresql,sqlite}
py{37,38,39,310,311}-flake8
[testenv]
passenv =
postgresql: POSTGRES_USER POSTGRES_PASSWORD
setenv =
PYTHONPATH = {toxinidir}
deps =
coverage[toml]~=6.0
django20: Django>=2.0,<2.1
django21: Django>=2.1,<2.2
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
-rtests-requirements.txt
commands =
python --version
pip list
coverage run -m pytest -v
coverage report
[testenv:py{37,38,39,310,311}-flake8]
skip_install = True
deps = flake8
commands =
python --version
pip list
flake8 -v src tests docs