-
Notifications
You must be signed in to change notification settings - Fork 29
/
tox.ini
32 lines (30 loc) · 979 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
[tox]
requires =
tox-conda
minversion = 3.15
base_python = py311
envlist=py{38,39,310,311}
[testenv]
description = invoke pytest to run automated tests
deps =
pytest
pytest-cov
filelock
requests
imagehash
conda_env = requirements/dev.yml
commands =
pytest --cov tephi --cov-report term-missing {posargs}
[testenv:{docs,doctests}]
description =
invoke sphinx-build to build the docs/run the doctests
setenv =
DOCSDIR = {toxinidir}/docs/source
BUILDDIR = {toxinidir}/docs/_build
conda_env = requirements/rtd.yml
commands =
sphinx-apidoc -o "{env:DOCSDIR}/api" tephi tephi/tests
sphinx-build -W --keep-going -b html -d "{env:BUILDDIR}/doctrees" "{env:DOCSDIR}" "{env:BUILDDIR}/html" {posargs}
# when running the doctests, also check that any snippets in the
# docs are representative of the module output
doctests: sphinx-build -b doctest -d "{env:BUILDDIR}/doctrees" "{env:DOCSDIR}" "{env:BUILDDIR}/doctest" {posargs}