-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
41 lines (37 loc) · 928 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
[tox]
minversion = 3
envlist = {py38,py39,py310,py311,py312}{,-lektor33},lint
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, lint
[testenv]
deps =
pytest
pytest-cov
packaging
!lektor33: lektor>=3.4.0a0
lektor33: lektor<3.4.0
setenv =
# Prevent parallel pytest-cov runs from clobbering each others .coverage file
COVERAGE_FILE = {envtmpdir}/.coverage
passenv =
# Needed by git (to find global config settings user.email, user.name)
HOME
commands =
py.test --cov lektor_git_timestamp {posargs:--cov-fail-under=100 tests}
# Download latest pip.
# This works around issues with concurrent access to pip cache
# when running tox in parallel mode.
download = true
[testenv:lint]
skip_install = True
deps =
build
twine
commands =
python -m build --sdist --outdir {envtmpdir}/dist {toxinidir}
twine check {envtmpdir}/dist/*