-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
43 lines (38 loc) · 985 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
37
38
39
40
41
42
43
[tox]
envlist = py39, py310, py311, py312, coverage, docs, lint
skip_missing_interpreters = true
recreate = false
parallel = auto
[testenv]
deps =
pytest
pytest-cov
commands = pytest --cov=echopop --cov-report=term --cov-report=html
install_command = pip install --cache-dir={env:TOX_PIP_CACHE_DIR:.tox/.cache} {opts} {packages}
[testenv:py311]
venv = fresh_py311
allowlist_externals =
pytest
pytest-cov
deps =
python-dateutil
commands = pytest --cov=echopop --cov-report=term --cov-report=html
install_command = pip install --cache-dir={env:TOX_PIP_CACHE_DIR:.tox/.cache} {opts} {packages}
[testenv:docs]
deps =
-r ./docs/requirements.txt
commands =
jupyter-book build ./docs
[testenv:lint]
deps = pre-commit
commands = pre-commit run --all-files
; [testenv:coverage]
; description = Run tests with coverage
; skip_install = true
; deps =
; coverage
; pytest
; commands =
; coverage run -m pytest
; coverage report
; coverage html