forked from holoviz/holoviews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
67 lines (54 loc) · 2.04 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
57
58
59
60
61
62
63
64
65
66
67
# For use with pyct (https://github.com/pyviz/pyct), but just standard
# tox config (works with tox alone).
[tox]
# python version test group extra envs extra commands
envlist = {py39,py310,py311,py312}-{unit,ui,examples,all_recommended,simple}-{default}-{dev,pkg}
[_simple]
description = Install holoviews without any optional dependencies
deps = .
commands = python -c "import holoviews as hv; print(hv.__version__)"
[_unit_core]
description = Run unit tests with coverage but no optional test dependency
deps = .[tests_core]
commands = pytest holoviews --cov=./holoviews
[_unit]
description = Run unit tests with coverage and all the optional test dependencies
deps = .[tests]
commands = pytest holoviews --cov=./holoviews
[_unit_gpu]
description = Run unit tests with coverage and all the optional test dependencies
deps = .[tests_gpu]
commands = pytest holoviews --cov=./holoviews
[_ui]
description = Run UI tests
deps = .[tests, ui]
commands = pytest holoviews --cov=./holoviews --cov-report=xml --ui --browser chromium
[_examples]
description = Test that default examples run
deps = .[examples_tests]
commands = pytest -n auto --dist loadscope --nbval-lax examples
[_all_recommended]
description = Run all recommended tests
deps = .[tests, examples_tests]
commands = {[_unit]commands}
{[_examples]commands}
[_pkg]
commands = holoviews --install-examples
[testenv]
sitepackages = True
install_command = pip install --no-deps {opts} pytest {packages}
changedir = {envtmpdir}
commands = examples-pkg: {[_pkg]commands}
unit: {[_unit]commands}
unit_core: {[_unit_core]commands}
unit_gpu: {[_unit_gpu]commands}
ui: {[_ui]commands}
simple: {[_simple]commands}
examples: {[_examples]commands}
all_recommended: {[_all_recommended]commands}
deps = unit: {[_unit]deps}
unit_core: {[_unit_core]deps}
unit_gpu: {[_unit_gpu]deps}
ui: {[_ui]commands}
examples: {[_examples]deps}
all_recommended: {[_all_recommended]deps}