-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
66 lines (62 loc) · 1.56 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
[tox]
envlist = py27,py37,py38,py39,py310,py311
skipsdist=True
[gh-actions]
problem_matcher = False
python =
2.7: py27
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
install_command = {envpython} -m pip install -v {opts} {packages}
commands =
{envpython} -m pip install -e . -v
pytest --junitxml={toxinidir}/reports/test-{envname}.xml {posargs:--cov-report term}
{envpython} -c "import os; os.path.exists('{toxworkdir}/coverage') or os.makedirs('{toxworkdir}/coverage')"
usedevelop = True
setenv =
COVERAGE_FILE={toxworkdir}/coverage/.coverage.{envname}
passenv =
FFMPEG_PATH
FFPROBE_PATH
PYTEST_ADDOPTS
deps =
coverage
pytest
pytest-mock
pytest-tornado
pytest-cov
py27: thumbor<7
!py27: thumbor >= 7.0.0
!py27: pytest-asyncio
py37: git+https://github.com/fdintino/aws.git@9caa87ea2bdb88ec25d98cdae676c2e5b4be6b23#egg=tc_aws
py38,py39,py310,py311: thumbor-aws
py27: tc_aws<7
boto
mirakuru
py27: PyYAML==5.3.1
py27: moto[server] <= 2.1.0
py27: flask-cors<4
!py27: moto[server]<5
py37: boto3==1.21.21
py37: botocore==1.24.21
[testenv:coverage-report]
skip_install = true
deps = coverage
setenv=COVERAGE_FILE=.coverage
changedir = {toxworkdir}/coverage
commands =
coverage combine
coverage report
coverage xml -o {toxinidir}/coverage.xml
[testenv:codecov]
skip_install = true
deps = codecov
depends = coverage-report
passenv = CODECOV_TOKEN
changedir = {toxinidir}
commands =
codecov --file {toxinidir}/coverage/coverage.xml {posargs}