mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
pragmatismatic: run flaky tests three times to see if we can get more "green" CI runs this way ...
thanks to @the-compiler also modernize plugin usage
This commit is contained in:
@@ -65,7 +65,7 @@ Afterwards ``which python`` tells you that it comes out of the "venv"
|
|||||||
directory that contains all python install artifacts. Let's first
|
directory that contains all python install artifacts. Let's first
|
||||||
install test tools::
|
install test tools::
|
||||||
|
|
||||||
pip install pytest pytest-timeout requests
|
pip install pytest pytest-timeout pytest-rerunfailures requests
|
||||||
|
|
||||||
then cargo-build and install the deltachat bindings::
|
then cargo-build and install the deltachat bindings::
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,10 @@ passenv =
|
|||||||
DCC_PY_LIVECONFIG
|
DCC_PY_LIVECONFIG
|
||||||
deps =
|
deps =
|
||||||
pytest
|
pytest
|
||||||
pytest-faulthandler
|
pytest-rerunfailures
|
||||||
|
pytest-timeout
|
||||||
|
pytest-xdist
|
||||||
|
auditwheel
|
||||||
pdbpp
|
pdbpp
|
||||||
requests
|
requests
|
||||||
|
|
||||||
@@ -51,11 +54,12 @@ commands =
|
|||||||
|
|
||||||
|
|
||||||
[pytest]
|
[pytest]
|
||||||
addopts = -v -rs
|
addopts = -v -rs --reruns 3 --reruns-delay 2
|
||||||
python_files = tests/test_*.py
|
python_files = tests/test_*.py
|
||||||
norecursedirs = .tox
|
norecursedirs = .tox
|
||||||
xfail_strict=true
|
xfail_strict=true
|
||||||
timeout = 60
|
timeout = 60
|
||||||
|
timeout_method = thread
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
|
|||||||
Reference in New Issue
Block a user