Skip to content

Commit 4bf0562

Browse files
committed
local dev: fix parallel race condition in tox
1 parent c44431c commit 4bf0562

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

tox.ini

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env_list =
66
py3{8,9,10,11,12,13,14}-{tests,mypy}
77
py3{8,13}-tests-{colorama,be,rich},
88
docs-{sponsors,doctests},
9-
coverage-report
9+
coverage-{combine,report}
1010

1111

1212
[testenv]
@@ -32,15 +32,25 @@ deps =
3232
commands = coverage run -m pytest {posargs}
3333

3434

35-
[testenv:coverage-report]
36-
deps = coverage[toml]
35+
# Split combine/report in 2 to avoid excessive "Combined data file ..." output.
36+
[testenv:coverage-combine]
37+
# Keep base_python in-sync with .python-version-default
38+
base_python = py313
39+
# Keep in-sync with test env definition above.
40+
depends = py3{8,13}-tests{,-colorama,-be,-rich}
3741
skip_install = true
42+
deps = coverage
43+
commands = coverage combine
44+
45+
[testenv:coverage-report]
46+
# Keep base_python in-sync with .python-version-default
47+
base_python = py313
48+
depends = coverage-combine
3849
parallel_show_output = true
39-
# Keep in-sync with test env definition above.
40-
depends = py3{8,13}-tests{,colorama,be,rich}
41-
commands =
42-
coverage combine
43-
coverage report
50+
skip_install = true
51+
deps = coverage
52+
commands = coverage report
53+
4454

4555

4656
[testenv:docs-{build,doctests,linkcheck}]

0 commit comments

Comments
 (0)