Simple docker config for utility use.
[librarian.git] / tox.ini
1 [tox]
2 envlist =
3     clean,
4     py{38,39,310,311,312},
5     stats
6
7 [testenv]
8 deps =
9     coverage
10 ; Needed to find locally installed fonts when testing PDF production.
11 passenv = HOME
12 download = true
13 commands =
14     coverage run
15 install_command = pip install --extra-index-url https://py.mdrn.pl/simple {packages}
16
17 [testenv:clean]
18 basepython = python312
19 commands =
20     coverage erase
21 deps = coverage
22
23 [testenv:stats]
24 basepython = python312
25 commands =
26     coverage combine
27     coverage report
28     coverage html
29 deps = coverage
30
31 [coverage:run]
32 parallel = True
33 source_pkgs = librarian
34 command_line = -m unittest
35
36 [coverage:paths]
37 source = src/
38     .tox/*/lib/*/site-packages/
39