Skip to content

Commit 14dc1c9

Browse files
committed
Update examples to use 3.11 and make the adhoc layout example look a bit more like the src one.
1 parent 5f297ed commit 14dc1c9

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

examples/adhoc-layout/.coveragerc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ source =
55

66
[run]
77
branch = true
8-
parallel = true
98
source =
109
example
1110
.
1211

1312
[report]
14-
show_missing = true
1513
precision = 2
14+
show_missing = true

examples/adhoc-layout/tox.ini

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
[tox]
2-
envlist = pypy3,py39,report
2+
envlist = clean,pypy311,py311,report
33

44
[tool:pytest]
55
addopts =
66
--cov-report=term-missing
77

88
[testenv]
9-
setenv =
10-
py{py3,39}: COVERAGE_FILE = .coverage.{envname}
11-
commands = pytest --cov --cov-config={toxinidir}/.coveragerc {posargs:-vv}
9+
commands = pytest --cov --cov-append --cov-config={toxinidir}/.coveragerc {posargs:-vv}
1210
deps =
1311
pytest
1412
coverage
@@ -19,15 +17,20 @@ deps =
1917
../..
2018

2119
depends =
22-
report: pypy3,py39
20+
report: pypy311,py311
21+
{pypy311,py311}: clean
2322

2423
# note that this is necessary to prevent the tests importing the code from your badly laid project
2524
changedir = tests
2625

26+
[testenv:clean]
27+
skip_install = true
28+
deps = coverage
29+
commands =
30+
coverage erase
31+
2732
[testenv:report]
2833
skip_install = true
2934
deps = coverage
3035
commands =
31-
coverage combine
32-
coverage html
3336
coverage report --fail-under=100

examples/src-layout/.coveragerc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ source =
55

66
[run]
77
branch = true
8-
parallel = true
98
source =
109
src/example
1110
tests
1211

1312
[report]
14-
show_missing = true
1513
precision = 2
14+
show_missing = true

examples/src-layout/tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = clean,pypy310,py310,report
2+
envlist = clean,pypy311,py311,report
33

44
[tool:pytest]
55
testpaths = tests
@@ -18,8 +18,8 @@ deps =
1818
../..
1919

2020
depends =
21-
report: pypy310,py310
22-
{pypy310,py310}: clean
21+
report: pypy311,py311
22+
{pypy311,py311}: clean
2323

2424
[testenv:clean]
2525
skip_install = true

0 commit comments

Comments
 (0)