From fb88f2e6abcacab8f10ab51a4f951d179edec6f0 Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 22 Mar 2023 15:27:12 +0000 Subject: [PATCH] Reintroduce pytest-rerunfailures Tests on GitHub Actions are very flaky recently. --- python/tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/tox.ini b/python/tox.ini index f22c5252a..24360b404 100644 --- a/python/tox.ini +++ b/python/tox.ini @@ -8,7 +8,7 @@ envlist = [testenv] 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 setenv = # Avoid stack overflow when Rust core is built without optimizations. @@ -21,6 +21,7 @@ passenv = RUSTC_WRAPPER deps = pytest + pytest-rerunfailures pytest-timeout pytest-xdist pdbpp