File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2020 - PYTHON_VERSION=3.6 TOXENV=py36-test-mpl22
2121 - PYTHON_VERSION=3.7 TOXENV=py37-test-mpl30
2222 - PYTHON_VERSION=3.8 TOXENV=py38-test-mpl31
23+ - PYTHON_VERSION=3.8 TOXENV=py38-test-minimal
2324 - PYTHON_VERSION=3.8 TOXENV=codestyle
2425
2526install :
Original file line number Diff line number Diff line change @@ -18,12 +18,14 @@ deps =
1818 mpl31: matplotlib ==3.1.*
1919 mpldev: git+https://github.com/matplotlib/matplotlib.git# egg=matplotlib
2020extras =
21- test
21+ !minimal: test
2222commands =
2323 pip freeze
2424 # Make sure the tests pass with and without --mpl
25- pytest {toxinidir}/tests --cov pytest_mpl --cov-config ={toxinidir}/setup.cfg {posargs}
26- pytest {toxinidir}/tests --mpl --cov pytest_mpl --cov-config ={toxinidir}/setup.cfg {posargs}
25+ !minimal: pytest {toxinidir}/tests --cov pytest_mpl --cov-config ={toxinidir}/setup.cfg {posargs}
26+ !minimal: pytest {toxinidir}/tests --mpl --cov pytest_mpl --cov-config ={toxinidir}/setup.cfg {posargs}
27+ # Make sure that the plugin won't crash pytest if Matplotlib isn't installed
28+ minimal: python -c ' import pytest_mpl.plugin'
2729
2830[testenv:codestyle]
2931skip_install = true
You can’t perform that action at this time.
0 commit comments