Skip to content

Commit 0493f48

Browse files
update tox
1 parent 4071012 commit 0493f48

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

tox.ini

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
11
[tox]
2-
envlist = qc, docs, py37, pypy3, deps
2+
envlist = py{310,311,312,313,314}-tests, qc, docs
3+
isolated_build = true
34

4-
[testenv]
5-
passenv = WHEELHOUSE PIP_FIND_LINKS PIP_WHEEL_DIR PIP_INDEX_URL
6-
setenv = PYTHONPATH = {toxinidir}
7-
deps = -r{toxinidir}/ci/requirements-tests.txt
8-
commands = pytest -v --flakes --cache-clear --basetemp={envtmpdir} {posargs}
5+
[testenv:py{310,311,312,313,314}-tests]
6+
package = wheel
7+
wheel_build_env = .pkg
8+
extras = xarray
9+
deps =
10+
dask[array]
11+
pytest
12+
pytest-cov
13+
scipy
14+
xarray>=0.15
15+
commands = pytest -v --cache-clear {posargs}
916

1017
[testenv:docs]
1118
deps = -r{toxinidir}/ci/requirements-docs.txt
1219
commands = sphinx-build -W -b html docs build/sphinx/html
1320

1421
[testenv:qc]
15-
basepython = python3.7
16-
# needed for pytest-cov
1722
usedevelop = true
18-
commands = pytest -v --flakes --pep8 --mccabe --cov=cfgrib --cov=cf2cdm --doctest-glob="*.rst" --cov-report=html --cache-clear --basetemp={envtmpdir} {posargs}
19-
20-
[testenv:deps]
2123
deps =
22-
commands = python setup.py test
24+
dask[array]
25+
flake8
26+
pytest
27+
pytest-cov
28+
scipy
29+
xarray>=0.15
30+
commands = pytest -v --cov=cfgrib --cov=cf2cdm --cov-report=html --cache-clear {posargs}
31+
32+
[testenv]
33+
passenv = *

0 commit comments

Comments
 (0)