Skip to content

Commit 86110ce

Browse files
committed
chore: add pytest-rerunfailures
Unfortunately, CI is flaky and this is difficult to replicate locally. Signed-off-by: JP-Ellis <[email protected]>
1 parent f61a093 commit 86110ce

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

pyproject.toml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,18 @@ devel-docs = [
7676
"mkdocstrings[python] ~= 0.23",
7777
]
7878
devel-test = [
79-
"aiohttp[speedups] ~=3.0",
80-
"coverage[toml] ~=7.0",
81-
"flask[async] ~=3.0",
82-
"httpx ~=0.0",
83-
"mock ~=5.0",
84-
"pytest-asyncio ~=0.0",
85-
"pytest-bdd ~=8.0",
86-
"pytest-cov ~=6.0",
87-
"pytest-xdist ~=3.0",
88-
"pytest ~=8.0",
89-
"testcontainers ~=4.0",
79+
"aiohttp[speedups] ~=3.0",
80+
"coverage[toml] ~=7.0",
81+
"flask[async] ~=3.0",
82+
"httpx ~=0.0",
83+
"mock ~=5.0",
84+
"pytest-asyncio ~=0.0",
85+
"pytest-bdd ~=8.0",
86+
"pytest-cov ~=6.0",
87+
"pytest-rerunfailures ~=15.0",
88+
"pytest-xdist ~=3.0",
89+
"pytest ~=8.0",
90+
"testcontainers ~=4.0",
9091
]
9192
devel = ["pact-python[devel-types,devel-docs,devel-test]", "ruff==0.8.4"]
9293

@@ -191,6 +192,9 @@ addopts = [
191192
# Xdist options
192193
"--numprocesses=logical",
193194
"--dist=worksteal",
195+
# Rerun options
196+
"--reruns=3",
197+
"--rerun-except=assert",
194198
]
195199
filterwarnings = [
196200
"ignore::DeprecationWarning:examples",

0 commit comments

Comments
 (0)