forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (46 loc) · 1.18 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
[tox]
basepython = py3
isolated_build = true
envlist =
mlserver
all-runtimes
[testenv]
allowlist_externals = poetry
[testenv:mlserver]
commands_pre =
poetry install --sync --no-root
commands =
python -m pytest {posargs} \
{toxinidir}/tests
[testenv:all-runtimes]
commands_pre =
poetry install --sync --no-root \
--with all-runtimes \
--with all-runtimes-dev
commands =
python -m pytest {posargs} \
{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