-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
66 lines (60 loc) · 1.3 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 =
lint
clean
py{38,39,310,311,312}-mpl
py38-mpl{32,33}
py39-mpl34-np1
py310-mpl35-np1
py311-mpl36-np1
py311-mpl37
py312-mpl38
report
minversion = 4.11.3
[tool:pytest]
testpaths = tests
addopts =
--mpl
--cov=src/prettypyplot
--cov-report=term-missing
--cov-append
[gh]
python =
3.12 = lint, clean, py312-mpl, py312-mpl38, report
3.11 = clean, py311-mpl, py311-mpl36-np1, py311-mpl37, report
3.10 = clean, py310-mpl, py310-mpl35-np1, report
3.9 = clean, py39-mpl, py39-mpl34-np1, report
3.8 = clean, py38-mpl, py38-mpl{32,33}-np1, report
[testenv]
description = run pytest testing
deps =
pytest>=6
pytest-cov
pytest-mpl
coverage
mpl: matplotlib
mpl32: matplotlib==3.2.*
mpl33: matplotlib==3.3.*
mpl34: matplotlib==3.4.*
mpl35: matplotlib==3.5.*
mpl36: matplotlib==3.6.*
mpl37: matplotlib==3.7.*
mpl38: matplotlib==3.8.*
np1: numpy<2
commands =
pytest --cov {posargs}
[testenv:lint]
description = run flake8 linting
deps = flake8>=6
skip_install = true
commands = flake8 --config flake8-CI.cfg src/
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage xml