forked from ai2cm/fv3gfs-util
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
49 lines (44 loc) · 1.17 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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py3
[testenv:test_no_extras]
allowlist_externals=make
deps =
# other versions of pytest don't work with subtests
pytest
pytest-subtests
pytest-cov
git+https://github.com/GridTools/gt4py.git@db40777788863bfe87b9674b118e8bd5b8db0440#egg=gt4py
-cconstraints.txt
# only run a subset of tests (fast, no MPI tests)
# to check import infrastructure works with no extras
setenv =
PYTEST_ARGS = --fast
commands =
make test
[testenv:test]
allowlist_externals=make mpirun
deps =
# other versions of pytest don't work with subtests
pytest
pytest-subtests
pytest-cov
git+https://github.com/GridTools/gt4py.git@db40777788863bfe87b9674b118e8bd5b8db0440#egg=gt4py
mpi4py
-cconstraints.txt
extras = netcdf,zarr
commands =
make test test_mpi
[testenv:lint]
allowlist_externals=make
skip_install = true
deps =
black
flake8
mypy
-cconstraints.txt
commands =
make lint