We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07187df commit 9fab220Copy full SHA for 9fab220
pytest_github_actions_annotate_failures/plugin.py
@@ -1,6 +1,11 @@
1
import os
2
3
def pytest_runtest_logreport(report):
4
+ # enable only in a workflow of GitHub Actions
5
+ # ref: https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
6
+ if not os.environ.get('GITHUB_ACTIONS'):
7
+ return
8
+
9
if report.outcome != 'failed':
10
return
11
0 commit comments