-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
60 lines (49 loc) · 1.32 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
envlist =
py{38}-test{,-cov}
build_docs
test_notebooks
requires =
pip >= 19.3.1
isolated_build = true
[testenv]
# Suppress display of matplotlib plots generated during docs build
setenv = MPLBACKEND=agg
# Pass through the following environment variables which may be needed for the CI
passenv = HOME WINDIR LC_ALL LC_CTYPE CC CI TRAVIS
changedir = .tmp/{envname}
description =
run tests
cov: and test coverage
# The following provides some specific pinnings for key packages
deps =
cov: coverage[toml]
allowlist_externals =
pip
pytest
coverage
commands =
pip freeze
!cov: pytest --pyargs kanon {toxinidir}/docs {posargs}
cov: pytest --pyargs kanon {toxinidir}/docs --cov kanon --cov-config={toxinidir}/pyproject.toml -p "no:hypothesispytest" {posargs}
cov: coverage xml --rcfile={toxinidir}/pyproject.toml -o {toxinidir}/coverage.xml
[testenv:test_notebooks]
description = test notebook examples
changedir = {toxinidir}
extras = notebook
allowlist_externals =
pip
pytest
commands =
pip freeze
pytest examples/tests/test_notebooks.py {posargs}
[testenv:build_docs]
changedir = docs
description = invoke sphinx-build to build the HTML docs
extras = docs
allowlist_externals =
pip
sphinx-build
commands =
pip freeze
sphinx-build -b html . _build/html