forked from GridTools/gt4py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
41 lines (37 loc) · 1.16 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
# Tox configuration file
# Read more under https://tox.readthedocs.org/
[tox]
envlist =
py{38,39}-internal-{cpu,cuda,cuda90,cuda91,cuda92,cuda100,cuda101}
[testenv]
deps = -r {toxinidir}/requirements-dev.txt
install_command = python -m pip install --no-cache-dir {opts} {packages}
commands_pre =
python -m gt4py.gt_src_manager install -m 1
python -m gt4py.gt_src_manager install -m 2
python -m gt4py.gt_cache_manager clean
passenv = BOOST_ROOT BOOST_HOME CUDA_HOME CUDA_PATH CXX CC OPENMP_CPPFLAGS OPENMP_LDFLAGS PIP_USER PYTHONUSERBASE
whitelist_externals =
/bin/bash
make
gcc
g++
ldd
extras =
testing
cuda: cuda
cuda90: cuda90
cuda91: cuda91
cuda92: cuda92
cuda100: cuda100
cuda101: cuda101
[testenv:py{38,39}-internal-cpu]
commands =
pip list
pytest --cache-clear --cov -v -m "not requires_gpu" {posargs}
pytest --doctest-modules --cov --cov-append {envsitepackagesdir}/eve
[testenv:py{38,39}-internal-{cuda,cuda90,cuda91,cuda92,cuda100,cuda101}]
commands =
pip list
pytest --cache-clear --cov -v -m "requires_gpu" {posargs}
pytest --doctest-modules --cov --cov-append {envsitepackagesdir}/eve