forked from Krukov/cashews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
51 lines (48 loc) · 1.41 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
[tox]
envlist =
{py37,py38,py39,310}
{py37,py38,py39,py310}-redis
{py37,py38,py39,py310}-diskcache
{py37,py38,py39,py310}-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,py37,py38,py39,py310}-redis: MARKER = redis and not diskcache
{py,py37,py38,py39,py310}-diskcache: MARKER = diskcache and not redis
{py,py37,py38,py39,py310}-integration: MARKER = integration
deps =
pytest
pytest-asyncio
pytest-cov
hypothesis
{py,py37,py38,py39,py310}-integration: aiohttp
{py,py37,py38,py39,py310}-integration: fastapi
{py,py37,py38,py39,py310}-integration: requests
{py,py37,py38,py39,py310}-integration: dill
{py,py37,py38,py39,py310}-integration: SQLAlchemy
extras =
{py,py37,py38,py39}-redis: redis,speedup
{py,py37,py38,py39}-diskcache: diskcache
commands =
pytest --cov --cov-fail-under=0 \
-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 =
{py37,py38,py39,py310}
{py37,py38,py39,py310}-redis
{py37,py38,py39}-diskcache
{py37,py38,py39,py310}-integration