forked from NVIDIA-NeMo/Guardrails
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
23 lines (20 loc) · 734 Bytes
/
tox.ini
File metadata and controls
23 lines (20 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# tox will not do any install.
# Poetry installs all the dependencies and the current package in editable mode.
# Thus, tests are running against the local files and not the built and installed package
# This is the recommended way to run tests with Poetry (https://python-poetry.org/docs/faq/#is-tox-supported)
# How to use:
# do
# > pyenv install 3.10 3.11 3.12
# > pyenv local 3.10 3.11 3.12
[tox]
envlist = py310, py311, py312, py313
[testenv]
description = Run tests with pytest under different Python versions using Poetry
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest tests/ --import-mode importlib
[pytest]
asyncio_default_fixture_loop_scope = function