-
Notifications
You must be signed in to change notification settings - Fork 40
/
tox.ini
60 lines (56 loc) · 1.62 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
[tox]
; This tox configuration is based on examples at:
; https://jugmac00.github.io/blog/combine-coverage-for-different-python-versions/
; https://github.com/JulienPalard/oeis/blob/14bea829d556bd617426c8a85235ba5da1b9f157/tox.ini
; Specify the environments to run - we run the required
; Python/Django version combinations and we'll store code
; coverage information for each (see testenv). Then we
; run the coverage env target to combine coverage info.
; Note that this has been updated to remove the use of pytest-cov
; since this complicated parallel runs via GHA. Since we're no longer
; using append (via pytest-cov), this means we also don't need an inital
; coverage clean step since previous coverage files are overwritten.
envlist =
py27
py35
py36
py37
py38
py39
py310
py311
coverage
[testenv]
; This is the general environment configuration for the
; Python/Django test runs.
deps =
pytest
pytest-django
coverage
wheel;python_version=='3.5'
httpretty==1.0.3;python_version>='3.5'
httpretty==0.9.7;python_version=='2.7'
mock>=3.0.0,<=3.0.5;python_version<='3.5'
mock>=3.0.5;python_version>'3.5'
paramiko
; Run coverage with the parallel option to produce
; coverage files that don't overwrite each other!
commands =
{envbindir}/coverage run -m -p pytest
[testenv:coverage]
deps = coverage
parallel_show_output = True
skip_install = true
commands =
coverage combine
coverage report -m
depends =
py27
py35
py36
py37
py38
py39
py310
py311
; pytest configuration is provided in pytest.ini