forked from travis-infrastructure/highcharts-gantt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (33 loc) · 850 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
[tox]
envlist = py{36,37,38,39,310,311},docs,coverage
minversion = 4.4
[testenv]
skipsdist = True
usedevelop = True
passenv = TOXENV, CI, TRAVIS, TRAVIS_*, CODECOV*, HIGHCHARTS*, MONDAY*, ASANA*, JIRA*
extras = dev
deps =
-r requirements.txt
commands =
pytest {posargs}
[testenv:py]
description =
py{36,37,38,39,310,311}: Run unit tests against {envname}
commands =
{[testenv]commands}
[testenv:coverage]
description =
Run code coverage checks and upload to CodeCov.
setenv =
PYTEST_ADDOPTS = --cov ./highcharts_gantt --cov-config {toxinidir}/setup.cfg
allowlist_externals = codecov
commands =
{[testenv]commands}
[testenv:docs]
description =
Test whether the documentation builds correctly prior to publication.
basepython = python
changedir = docs
extras = docs
commands =
sphinx-build -b html . _build/html