-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
44 lines (39 loc) · 882 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
44
[tox]
envlist =
check
py38,
py39,
coverage
docs
[testenv]
usedevelop = True
extras = test
setenv =
PYTHONPATH = {toxinidir}
COVERAGE_FILE=.coverage.{envname}
commands =
py.test --cov=tagbotgitlab --verbose --tb=long
[testenv:coverage]
basepython = python3
deps = coverage
skip_install = True
skipsdist = True
commands =
/usr/bin/env bash -c "{envpython} -m coverage combine .coverage.*"
coverage report
[testenv:check]
basepython = python3
extras = check
commands =
isort tagbotgitlab tests setup.py docs/conf.py --check-only --diff
black tagbotgitlab tests setup.py docs/conf.py --check --diff
flake8 tagbotgitlab tests setup.py docs/conf.py
mypy tagbotgitlab
[testenv:docs]
basepython = python3
extras = docs
commands = sphinx-build {posargs:-E} -b html docs dist/docs
[gh-actions]
python =
3.8: py38
3.9: py39