forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
57 lines (52 loc) · 1.31 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
[tox]
basepython = py3
isolated_build = true
envlist =
mlserver
all-runtimes
py3
[testenv]
allowlist_externals = poetry
[testenv:py3]
commands_pre =
poetry install --sync --no-root
commands =
python -m pytest {posargs} -n auto
[testenv:mlserver]
commands_pre =
poetry install --sync --no-root
commands =
python -m pytest {posargs} -n auto \
{toxinidir}/tests
[testenv:all-runtimes]
commands_pre =
poetry install --sync --no-root \
--with all-runtimes \
--with all-runtimes-dev
commands =
python -m pytest {posargs} -n auto \
{toxinidir}/tests \
{toxinidir}/runtimes/alibi-explain \
{toxinidir}/runtimes/alibi-detect \
{toxinidir}/runtimes/sklearn \
{toxinidir}/runtimes/xgboost \
{toxinidir}/runtimes/mllib \
{toxinidir}/runtimes/lightgbm \
{toxinidir}/runtimes/mlflow \
{toxinidir}/runtimes/huggingface
[testenv:licenses]
commands_pre =
poetry install --sync --no-root \
--with all-runtimes \
--with all-runtimes-dev
commands =
pip-licenses \
--from=mixed \
--format=csv \
--output-file=./licenses/license_info.csv
pip-licenses \
--from=mixed \
--format=plain-vertical \
--with-license-file \
--no-license-path \
--output-file=./licenses/license.txt