This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
forked from GridTools/gt4py
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
56 lines (51 loc) · 1.73 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
50
51
52
53
54
55
56
# Tox configuration file
# Read more under https://tox.readthedocs.org/
[tox]
envlist =
py{38,39}-{internal,all}-{cpu,cuda,cuda90,cuda91,cuda92,cuda100,cuda101,cuda110,cuda111,cuda112}
[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
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
format
all: dace
cuda: cuda
cuda110: cuda110
cuda111: cuda111
cuda112: cuda112
cuda113: cuda113
cuda114: cuda114
cuda115: cuda115
cuda116: cuda116
cuda117: cuda117
[testenv:py{38,39}-internal-cpu]
commands =
pip list
pytest --cache-clear --cov -v -m "not requires_gpu and not requires_dace" {posargs}
pytest --doctest-modules --cov --cov-append {envsitepackagesdir}/eve
[testenv:py{38,39}-all-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,cuda110,cuda111,cuda112}]
commands =
pip list
pytest --cache-clear --cov -v -m "requires_gpu and not requires_dace" {posargs}
pytest --doctest-modules --cov --cov-append {envsitepackagesdir}/eve
[testenv:py{38,39}-all-{cuda,cuda90,cuda91,cuda92,cuda100,cuda101,cuda110,cuda111,cuda112}]
commands =
pip list
pytest --cache-clear --cov -v -m "requires_gpu" {posargs}
pytest --doctest-modules --cov --cov-append {envsitepackagesdir}/eve