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