We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e1ec1f + b2516c5 commit 079e5f9Copy full SHA for 079e5f9
pytest_github_actions_annotate_failures/plugin.py
@@ -27,6 +27,15 @@ def pytest_runtest_makereport(item, call):
27
if os.environ.get("GITHUB_ACTIONS") != "true":
28
return
29
30
+ try:
31
+ # If we have the pytest_rerunfailures plugin, and there are still
32
+ # retries to be run, then ignore error
33
+ import pytest_rerunfailures
34
+ if item.execution_count <= pytest_rerunfailures.get_reruns_count(item):
35
+ return
36
+ except ImportError:
37
+ pass
38
+
39
if report.when == "call" and report.failed:
40
# collect information to be annotated
41
filesystempath, lineno, _ = report.location
0 commit comments