-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
52 lines (46 loc) · 1.24 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
[tox]
env_list =
clean, py310, py38 # executed in this order unless running in parallel
minversion = 4.6.4
[gh]
python =
3.12 = py312
3.11 = py311, type
3.10 = py310
3.9 = py39
3.8 = py38
3.7 = py37
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
extras =
; test # not working with pytest-mock, todo2: maybe works, was wrong previously (actually forgot to commit dockerfile)
readfish
deps =
pytest>=6
pytest-sugar # cannot be added in pyproject.toml (bug), see https://stackoverflow.com/questions/68299355/why-pytest-sugar-doesnt-work-in-gitlab-ci
pytest-helpers-namespace
pytest-datadir
pytest-mock # needs to be here as the github runner otherwise gets stuck when installing feature "test" from pyproject
; pytest-xdist
pytest-cov
commands =
pytest {tty:--color=yes} --cov --cov-append --cov-report=term-missing {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
# todo2
; [testenv:lint]
; description = run linters
; skip_install = true
; deps =
; black==22.12
; commands = black {posargs:.}
; [testenv:type]
; description = run type checks
; deps =
; mypy>=0.991
; commands =
; mypy {posargs:src tests}