Reintroduce pytest-rerunfailures

Tests on GitHub Actions are very flaky recently.
This commit is contained in:
link2xt
2023-03-22 15:27:12 +00:00
parent 5db867cd1b
commit fb88f2e6ab

View File

@@ -8,7 +8,7 @@ envlist =
[testenv] [testenv]
commands = commands =
pytest -n6 --extra-info -v -rsXx --ignored --strict-tls {posargs: tests examples} pytest -n6 --extra-info --reruns 2 --reruns-delay 5 -v -rsXx --ignored --strict-tls {posargs: tests examples}
pip wheel . -w {toxworkdir}/wheelhouse --no-deps pip wheel . -w {toxworkdir}/wheelhouse --no-deps
setenv = setenv =
# Avoid stack overflow when Rust core is built without optimizations. # Avoid stack overflow when Rust core is built without optimizations.
@@ -21,6 +21,7 @@ passenv =
RUSTC_WRAPPER RUSTC_WRAPPER
deps = deps =
pytest pytest
pytest-rerunfailures
pytest-timeout pytest-timeout
pytest-xdist pytest-xdist
pdbpp pdbpp