-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
36 lines (31 loc) · 944 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
33
34
35
36
[tox]
envlist = py37,py39,py310,black,interop
isolated_build = True
[testenv]
allowlist_externals = poetry
commands =
poetry install
{envpython} -m grpc_tools.protoc \
--proto_path=tests/protos/ \
--python_out=. \
--grpc_python_out=. \
tests/protos/tests/helloworld.proto \
tests/protos/tests/benchmark.proto
{envpython} -m mypy sonora tests
{envpython} -m pytest --benchmark-sort=name {posargs}
[testenv:black]
deps=black
basepython=python3
commands=black --verbose --check --exclude _pb2 sonora/ tests/
[testenv:interop-wsgi]
allowlist_externals=docker
commands=
docker compose up -d wsgi-server
docker compose run interop-grpcweb
docker compose stop wsgi-server
[testenv:interop-asgi]
allowlist_externals=docker
commands=
docker compose up -d asgi-server
docker compose run interop-grpcweb
docker compose stop asgi-server