Skip to content

Commit b7d9462

Browse files
committed
Use pytest_runtest_logreport hook again
Fixes #76
1 parent d1a4b30 commit b7d9462

File tree

1 file changed

+1
-6
lines changed
  • pytest_github_actions_annotate_failures

1 file changed

+1
-6
lines changed

pytest_github_actions_annotate_failures/plugin.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,7 @@
2323
# https://github.com/pytest-dev/pytest/blob/master/src/_pytest/terminal.py
2424

2525

26-
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
27-
def pytest_runtest_makereport(item: Item, call): # noqa: ARG001
28-
# execute all other hooks to obtain the report object
29-
outcome = yield
30-
report: CollectReport = outcome.get_result()
31-
26+
def pytest_runtest_logreport(report):
3227
# enable only in a workflow of GitHub Actions
3328
# ref: https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
3429
if os.environ.get("GITHUB_ACTIONS") != "true":

0 commit comments

Comments
 (0)