-
Notifications
You must be signed in to change notification settings - Fork 31
/
tox.ini
70 lines (62 loc) · 1.44 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
70
[tox]
downloadcache = {toxworkdir}/cache/
envlist = py312,py311,py310,py39,py38,lint,docs,pypy3
[testenv:py312]
passenv =
GITHUB_ACTIONS
GITHUB_TOKEN
deps = -rtox-requirements.txt
-rrequirements.txt
commands =
pytest --retries 2 --random-order-bucket=global -s --cov-report= --cov-config .coveragerc --cov molotov molotov/tests
- coverage combine
- coverage report -m
- coveralls
[testenv:py38]
passenv =
GITHUB_ACTIONS
GITHUB_TOKEN
deps = -rtox-py38-requirements.txt
-rrequirements.txt
commands =
pytest --random-order-bucket=global -s molotov/tests
[testenv]
passenv =
GITHUB_ACTIONS
GITHUB_TOKEN
deps = -rtox-requirements.txt
-rrequirements.txt
commands =
pytest --retries 2 --random-order-bucket=global -s molotov/tests
[testenv:pypy3]
passenv =
GITHUB_ACTIONS
GITHUB_TOKEN
deps = -rtox-pypy-requirements.txt
-rrequirements.txt
commands =
pytest --retries 2 --random-order-bucket=global -s molotov/tests
[testenv:lint]
commands =
ruff check setup.py molotov
ruff format setup.py molotov
pyright molotov
deps =
ruff
pyright
[testenv:docs]
deps =
-rrequirements.txt
sphinx
-rdocs-requirements.txt
commands=
sphinx-build -W -b html docs/source docs/build
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310, lint, docs
3.11: py311, lint, docs
3.12: py312, lint, docs
pypy-3.9: pypy3
pypy-3.10: pypy3