forked from Krukov/cashews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (49 loc) · 1.52 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
[tox]
envlist =
{py38,py39,py310,py311}
{py38,py39,py310,py311}-redis
{py38,py39,py310,py311}-diskcache
{py38,py39,py310,py311}-integration
coverage
skip_missing_interpreters = true
[testenv]
setenv =
PYTHONPATH = {toxinidir}/tests
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
MARKER = not redis and not integration and not diskcache
{py,py38,py39,py310,py311}-redis: MARKER = redis and not diskcache
{py,py38,py39,py310,py311}-diskcache: MARKER = diskcache and not redis
{py,py38,py39,py310,py311}-integration: MARKER = integration
deps =
pytest
pytest-asyncio
pytest-cov
pytest-rerunfailures
hypothesis
{py,py38,py39,py310,py311}-integration: aiohttp
{py,py38,py39,py310,py311}-integration: fastapi
{py,py38,py39,py310,py311}-integration: httpx
{py,py38,py39,py310,py311}-integration: SQLAlchemy
extras =
{py,py38,py39,py310,py311}-redis: redis,speedup
{py,py38,py39,py310,py311}-diskcache: diskcache
{py,py37,py38,py39,py310,py311}-integration: redis,speedup,diskcache,dill
commands =
pytest --cov --cov-fail-under=0 --reruns 5 --reruns-delay 1 \
-m "{env:MARKER}" \
{posargs:.}
[testenv:coverage]
skip_install = True
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
deps =
coverage
commands =
coverage combine
coverage report
coverage xml -o {toxworkdir}/coverage.xml
depends =
{py38,py39,py310,py311}
{py38,py39,py310,py311}-redis
{py38,py39,py310,py311}-diskcache
{py38,py39,py310,py311}-integration