-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtox.ini
More file actions
27 lines (24 loc) · 694 Bytes
/
Copy pathtox.ini
File metadata and controls
27 lines (24 loc) · 694 Bytes
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
[tox]
minversion = 3.10.0
envlist = precommit, py310, py311
isolated_build = true
[gh-actions]
python =
3.10: py310, precommit
3.11: py311
[testenv]
setenv =
PYTHONPATH = {toxinidir}
allowlist_externals =
poetry
bash
commands =
poetry config virtualenvs.in-project true
poetry install -v
poetry run python -c 'import platform, subprocess; version = platform.python_version_tuple(); subprocess.run(["python", "-m", "pip", "install", "dtaidistance"]) if version < ("3", "10") else None'
poetry run pytest --basetemp={envtmpdir}
[testenv:precommit]
basepython = python3.10
whitelist_externals = poetry
deps = pre-commit
commands = pre-commit run --all-files