-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
57 lines (45 loc) · 1.08 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
[tox]
envlist =
check
build
build_docs
py{310}
; py{36,37,38,39,310}
isolated_build = True
skip_missing_interpreters = True
[gh-actions]
python =
; 3.6: py36
; 3.7: py37
; 3.8: check, build, build_docs, py38
; 3.9: py39
3.10: check, build, build_docs, py310
[testenv:check]
allowlist_externals = poetry
skip_install = true
commands =
poetry install --no-root
poetry run pre-commit run --all-files
[testenv:build]
allowlist_externals = poetry
skip_install = true
commands =
poetry build
[testenv:build_docs]
allowlist_externals = poetry
skip_install = true
commands =
poetry install -E docs
poetry run sphinx-build -n -T -W -b html -d {envtmpdir}/doctrees docs/source docs/_build/html
[testenv]
allowlist_externals = poetry
skip_install = true
commands =
poetry install
poetry run pytest -ra --cov=prog_shojin_util --cov-report=term --cov-report=xml tests
[testenv:py310]
allowlist_externals = poetry
skip_install = true
commands =
poetry install
poetry run pytest -ra --cov=prog_shojin_util --cov-report=term --cov-report=xml tests