-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
50 lines (45 loc) · 1.09 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]
envlist =
syft.test.unit
syft.jupyter
requires =
# `pip install tox tox-uv` OR `uv tool install tox --with tox-uv`
tox-uv
[testenv]
runner = uv-venv-lock-runner
with_dev = True
commands =
python --version
setenv =
UV_HTTP_TIMEOUT = 600
[testenv:syft.test.unit]
description = Syft Unit Tests
commands =
uv --version
python --version
pytest --version
python -m compileall -qf ./syftbox ./default_apps ./tests
pytest -n auto --disable-warnings \
--cov=syftbox --cov-fail-under=50 \
--cov-report term --cov-report html \
--timeout=90 --durations=5 \
tests/unit
[testenv:syft.test.integration]
description = Syft Integration Tests
commands =
uv --version
python --version
pytest --version
pytest -n auto --disable-warnings \
tests/integration -vv
[testenv:syft.test.stress]
description = Syft Stress Tests
changedir = {toxinidir}/tests/stress
commands =
locust
[testenv:syft.jupyter]
description = Jupyter Notebook with Editable Syft
allowlist_externals =
just
commands =
just run-jupyter {posargs}