-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (45 loc) · 794 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
45
46
47
48
49
50
[tox]
envlist =
lint
docs
build
py{310, 39, 38, 37, 36}
isolated_build = true
[testenv]
setenv =
BOTO_CONFIG = /dev/null
extras =
test
commands =
python -m pytest --cov=clustercron
[testenv:lint]
passenv =
SSH_AUTH_SOCK
basepython = python3.10
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:docs]
basepython = python3.10
extras =
docs
changedir = docs/
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:build]
skip_install = true
deps =
build
twine
commands =
python -m build
python -m twine check --strict dist/*
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: lint, py310, docs, build