-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
63 lines (58 loc) · 1.18 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
[tox]
env_list =
clean
lint
py{38,39,310,311}-django{40,41,42}
playwright
report
[testenv]
setenv =
PYTHONWARNINGS=once::DeprecationWarning
deps =
django40: Django==4.0.*
django41: Django==4.1.*
django42: Django==4.2.*
coverage==7.3.1
pytest==7.3.1
pytest-django==4.5.2
pytest-xdist==3.3.1
pytest-cov==4.1.0
pytest-playwright==0.3.3
factory_boy==3.2.1
commands =
pytest tests --cov --cov-append -m 'not pw'
depends =
py38,py39,py310,py311: clean
report: py{38,39,310,311}-django{40,41,42}
[testenv:lint]
allowlist_externals = make
commands =
make lint
deps =
ruff
black
[testenv:playwright]
description = Run playwright end-to-end tests
deps =
Django==4.2.*
pytest==7.3.1
pytest-django==4.5.2
pytest-xdist==3.3.1
pytest-cov==4.1.0
playwright==1.34.0
pytest-playwright==0.3.3
factory_boy==3.2.1
commands =
playwright install
pytest -m pw -n auto tests --browser firefox --browser chromium
[testenv:report]
deps = coverage
skip_install = True
commands =
-coverage report
-coverage html
[testenv:clean]
deps = coverage
skip_install = True
commands =
-coverage erase