-
Notifications
You must be signed in to change notification settings - Fork 460
/
Copy pathtox.ini
32 lines (29 loc) · 999 Bytes
/
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
[tox]
env_list = py{312}, runner
requires =
tox-uv>=0.2.0
isolated_build = True
[testenv]
install_command = uv pip install {opts} {packages}
deps = uv
skip_install = true
[testenv:runner]
changedir = runner
setenv =
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python
deps = uv
allowlist_externals=
sh
uv
pytest
commands_pre =
# Try to install dependencies from various requirements files
sh -c '[ -f cloud_requirements.txt ] && uv pip install -r cloud_requirements.txt || echo "cloud_requirements.txt not found"'
# Install dependencies from pyproject.toml
uv pip install -e .
# Install the Flask dependency explicitly (in case the above doesn't work)
uv pip install flask~=3.1.0 docker==6.1.3 redis~=5.2.1 python-dotenv>=1.0.0 kubernetes
# Install test dependencies
uv pip install pytest pytest-cov pytest-md-report pytest-mock
commands =
pytest -v --md-report-verbose=1 --md-report --md-report-flavor gfm --md-report-output ../runner-report.md