Run tests in parallel via tox for 3.5x speedup (#9516)

This commit is contained in:
Andrew Murray 2026-03-31 21:58:13 +11:00 committed by GitHub
commit 1f74a55be2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -15,7 +15,7 @@ TEST_FILE = "Tests/images/hopper.spider"
def teardown_module() -> None:
del Image.EXTENSION[".spider"]
Image.EXTENSION.pop(".spider", None)
def test_sanity() -> None:

View File

@ -9,11 +9,16 @@ env_list =
[testenv]
deps =
numpy
pytest-sugar
extras =
tests
commands =
{envpython} selftest.py
{envpython} -m pytest -W always {posargs}
{envpython} -m pytest \
--dist worksteal \
--numprocesses auto \
-W always \
{posargs}
[testenv:lint]
skip_install = true