Skip to content

Commit dcf9ea8

Browse files
committed
Disable coverage and enable debug logs on github actions.
1 parent 51af037 commit dcf9ea8

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

tests/agent_features/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ setenv =
1818
passenv =
1919
NEW_RELIC_LICENSE_KEY
2020
NEW_RELIC_HOST
21+
GITHUB_ACTIONS
2122

2223
commands = py.test -v []
2324

tests/agent_streaming/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ setenv =
1818
passenv =
1919
NEW_RELIC_LICENSE_KEY
2020
NEW_RELIC_HOST
21+
GITHUB_ACTIONS
2122

2223
commands =
2324
py.test -v []

tests/agent_unittests/tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ setenv =
1414
passenv =
1515
NEW_RELIC_LICENSE_KEY
1616
NEW_RELIC_HOST
17+
GITHUB_ACTIONS
1718

1819
commands = py.test -v []
1920

tests/testing_support/fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def initialize_agent(app_name=None, default_settings={}):
123123
log_directory = '.'
124124

125125
log_file = os.path.join(log_directory, 'python-agent-test.log')
126-
if 'JENKINS_HOME' in os.environ:
126+
if 'GITHUB_ACTIONS' in os.environ:
127127
log_level = logging.DEBUG
128128
else:
129129
log_level = logging.INFO
@@ -2318,7 +2318,7 @@ def _code_coverage_fixture(request):
23182318
if not source:
23192319
return
23202320

2321-
if os.environ.get('TDDIUM') is not None:
2321+
if os.environ.get('GITHUB_ACTIONS') is not None:
23222322
return
23232323

23242324
from coverage import coverage

0 commit comments

Comments
 (0)