-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathtox.ini
More file actions
62 lines (60 loc) · 1.67 KB
/
tox.ini
File metadata and controls
62 lines (60 loc) · 1.67 KB
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
[tox]
envlist =
py{312,313,314}-test-mpl{35,36,37,38,39,310}-pytest{62,70,71,72,73,74,80,81,82,83,84}
py314-test-mpldev-pytestdev
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
[testenv]
passenv =
DISPLAY
WINDIR
MPL_UPDATE_*
setenv =
MPLBACKEND = Agg
mpldev: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
changedir = .tmp/{envname}
description = run tests
constrain_package_deps =
!mpldev-!pytestdev: true
deps =
pytest-xdist
mpl{35,36,37,38,39}: pyparsing<3.3.0
mpl35: numpy<2
mpl35: matplotlib==3.5.*
mpl36: matplotlib==3.6.*
mpl37: matplotlib==3.7.*
mpl38: matplotlib==3.8.*
mpl39: matplotlib==3.9.*
mpl310: matplotlib==3.10.*
mpldev: matplotlib>=0.0.dev0
pytest62: pytest==6.2.*
pytest70: pytest==7.0.*
pytest71: pytest==7.1.*
pytest72: pytest==7.2.*
pytest73: pytest==7.3.*
pytest74: pytest==7.4.*
pytest80: pytest==8.0.*
pytest81: pytest==8.1.*
pytest82: pytest==8.2.*
pytest83: pytest==8.3.*
pytest84: pytest==8.4.*
pytestdev: git+https://github.com/pytest-dev/pytest.git#egg=pytest
extras =
test
commands =
pip freeze
# Make sure the tests pass with and without --mpl
# Use -m so pytest skips "subtests" which always apply --mpl
pytest '{toxinidir}' -m "mpl_image_compare" {posargs}
coverage run --source=pytest_mpl -m pytest '{toxinidir}' -n auto --mpl
coverage xml -o '{toxinidir}{/}coverage.xml'
[testenv:codestyle]
skip_install = true
changedir = .
description = check code style, e.g. with flake8
deps = pre-commit
commands =
pre-commit run --all-files