blob: d80450c155c461f2faa1a17da0de4263cb003020 (
plain)
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
|
[tox]
envlist = qa,py{39,310,311,312,313},pypy3{9,10},py3-nogpg,py3-norequests-noresponses,py3-noresponses
skip_missing_interpreters = True
# we operate on sources anyway
skipsdist = True
[testenv:qa]
deps =
pycodestyle
pyflakes
commands =
pyflakes {posargs:gemato tests}
pycodestyle {posargs:gemato tests}
[testenv]
deps =
coverage
pytest >= 5
pytest-cov
pytest-xdist
!norequests: requests
!noresponses: responses
setenv =
nogpg: GNUPG = wrong-command
commands =
pytest -vv --cov=gemato --cov-config=.coveragerc -n auto {posargs}
[testenv:upload]
skip_install = True
deps =
build
twine
commands =
python -m build -s -w
twine upload dist/*
[testenv:codecov]
basepython = python3
deps =
codecov
passenv =
CODECOV_TOKEN
commands =
codecov
[pytest]
xfail_strict = true
|