-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
43 lines (40 loc) · 1.05 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
[tox]
envlist = clean, py37, py38, py39, py310, py311, py312, py313
skipsdist = true
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
coverage
commands =
python -m pip install --upgrade pip
# step 1: install lbfgsb
python -m pip install .
# step 2: tests with coverage
pytest --cov=lbfgsb --cov-append --cov-report=term-missing --cov-config=.coveragerc --color=yes
# step 3: builds source and wheel package
pip install build
python -m build --sdist --wheel .
# step 4: build docs
python -msphinx -M html docs/sources {envtmpdir}/html
# sphinx-build -b html -d {envtmpdir}/doctrees ./docs/sources {envtmpdir}/html
# step5: coverage report display
coverage report -i
coverage html -i
coverage xml -i
depends =
{py37,py38,py39,py310,py311,py312,py313}: clean