-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (36 loc) · 1.29 KB
/
Copy pathtox.ini
File metadata and controls
39 lines (36 loc) · 1.29 KB
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
# Per-axis matrix, not a cartesian product: `latest` envs resolve the newest
# deps via setup.py install_requires; legacy floors are pinned on one Python
# (3.11) so each dependency's lower bound is still exercised without a 480-env
# blow-up. Floors track setup.py (pydantic>=1.10.17, websockets>=11, httpx>=0.19).
[tox]
envlist =
py{39,310,311,312}-latest
py311-httpx{0.22,0.24}
py311-pydantic1.10
py311-websockets11.0
py311-pyaudio0.2
[testenv]
deps =
# back-compat floors (per factor); `latest` envs omit these
websockets11.0: websockets>=11.0.0,<12.0.0
httpx0.22: httpx>=0.22.0,<0.23.0
httpx0.24: httpx>=0.24.0,<0.25.0
pydantic1.10: pydantic>=1.10.17,<1.11.0
# pyaudio is an extra, not in install_requires — install for all envs
pyaudio>=0.2.13
pyaudio0.2: pyaudio>=0.2.13,<0.3.0
# test dependencies
pytest
pytest-httpx
pytest-xdist
pytest-mock
pytest-cov
pytest-asyncio
factory-boy
allowlist_externals = pytest
commands = pytest -n auto --cov-report term --cov-report xml:coverage.xml --cov=assemblyai
[pytest]
# Streaming async tests use explicit ``pytestmark = pytest.mark.asyncio``.
# ``strict`` keeps that opt-in pattern and silences the pytest-asyncio
# unset-mode deprecation warning on >=0.21.
asyncio_mode = strict