Skip to content

Commit e7de35f

Browse files
committed
Add a tox configuration to test on py38-py311 + docs
1 parent 85bfe6a commit e7de35f

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

.coveragerc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[run]
2-
source = dsp
2+
parallel = true
3+
source = dsp, tests
34
relative_files = True
45

56
[report]

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ zip_safe = True
1919
include_package_data = True
2020

2121
[options.extras_require]
22-
dev = pytest
22+
dev = tox
2323

2424
[options.package_data]
2525
* = README.md

tox.ini

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[tox]
2+
min_version = 4.3.5
3+
4+
envlist =
5+
coverage_erase
6+
py{3.11, 3.10, 3.9, 3.8}
7+
coverage_report
8+
docs
9+
10+
skip_missing_interpreters = True
11+
isolated_build = True
12+
13+
14+
[testenv]
15+
description = Test
16+
package = wheel
17+
wheel_build_env = build_wheel
18+
19+
depends =
20+
py{3.11, 3.10, 3.9, 3.8}: coverage_erase
21+
deps =
22+
coverage
23+
pandas
24+
pytest
25+
commands =
26+
coverage run -m pytest
27+
28+
29+
[testenv:docs]
30+
description = Test documentation builds
31+
skipsdist = true
32+
skip_install = true
33+
deps =
34+
sphinx
35+
cvxpy
36+
commands = sphinx-build -aEnqb html docs/ build/docs
37+
38+
39+
[testenv:coverage_erase]
40+
description = Erase coverage files
41+
skipsdist = true
42+
skip_install = true
43+
deps = coverage
44+
commands = coverage erase
45+
46+
47+
[testenv:coverage_report]
48+
description = Report coverage
49+
depends =
50+
py{3.11, 3.10, 3.9, 3.8}
51+
skipsdist = true
52+
skip_install = true
53+
deps = coverage
54+
commands_pre =
55+
coverage combine
56+
coverage html --fail-under=0
57+
commands = coverage report

0 commit comments

Comments
 (0)