Skip to content

Commit

Permalink
Use pytest_runtest_logreport hook again
Browse files Browse the repository at this point in the history
Fixes #76
  • Loading branch information
amezin committed Jul 27, 2023
1 parent d1a4b30 commit b7d9462
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pytest_github_actions_annotate_failures/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@
# https://github.com/pytest-dev/pytest/blob/master/src/_pytest/terminal.py


@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item: Item, call): # noqa: ARG001
# execute all other hooks to obtain the report object
outcome = yield
report: CollectReport = outcome.get_result()

def pytest_runtest_logreport(report):
# enable only in a workflow of GitHub Actions
# ref: https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
if os.environ.get("GITHUB_ACTIONS") != "true":
Expand Down

0 comments on commit b7d9462

Please sign in to comment.