Skip to content

Commit 3147c48

Browse files
committed
only print warning on using Python > 3.9 when $GITHUB_ACTIONS is not set to 'true'
1 parent 1ec1fb1 commit 3147c48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easybuild/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@
103103
"see https://docs.easybuild.io/installation/#more_pip_env_EB_PYTHON for more information."
104104
"\033[0m"
105105
]
106-
sys.stderr.write('\n' + '\n'.join(warning_lines) + '\n\n')
106+
# only print the warning if we're not running in GitHub Actions
107+
if os.getenv('GITHUB_ACTIONS') == 'true':
108+
sys.stderr.write('\n' + '\n'.join(warning_lines) + '\n\n')
107109

108110

109111
def find_easyconfigs_by_specs(build_specs, robot_path, try_to_generate, testing=False):

0 commit comments

Comments
 (0)