-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
64 lines (60 loc) · 1.53 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
[tox]
envlist = py{27,37,38,39,310,311,312,py37}
minversion = 1.9
[gh-actions]
problem_matcher = False
python =
2.7: py27
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.7: pypy37
[testenv]
passenv =
LDFLAGS
CFLAGS
LD_LIBRARY_PATH
TERM
CC
use_develop = true
skip_install = true
setenv =
CFLAGS = {env:CFLAGS: } -coverage -fprofile-dir={toxinidir} -ftest-coverage -fprofile-arcs
LDFLAGS = {env:LDFLAGS: } --coverage
GCNO_TARGET_DIR={envdir}/temp
COVERAGE_FILE={toxworkdir}/coverage/.coverage.{envname}
commands =
{envpython} -m pip install -e . -v
{envpython} -m pytest -W always {posargs: -vv --cov pillow_avif --cov tests --cov-report term}
{envpython} -c "import os; os.path.exists('{toxworkdir}/coverage') or os.makedirs('{toxworkdir}/coverage')"
- gcovr -r {toxinidir} --object-directory {envdir} -k \
--gcov-ignore-errors=no_working_dir_found \
-o {toxworkdir}/coverage/.gcov_coverage.{envname}
deps =
gcovr
pytest
packaging
pytest-cov
test-image-results
pillow
py27: mock
[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 -X gcov --file {toxinidir}/coverage.xml {posargs}