From 5ae48f16b8c3951e5a8bdad85cb06707bfa3eb85 Mon Sep 17 00:00:00 2001 From: Pradeep Reddy Raamana Date: Fri, 26 Apr 2024 11:25:00 -0400 Subject: [PATCH] more helpful info into CI setup --- graynet/tests/test_graynet.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/graynet/tests/test_graynet.py b/graynet/tests/test_graynet.py index b0973c0..9608ab2 100644 --- a/graynet/tests/test_graynet.py +++ b/graynet/tests/test_graynet.py @@ -39,11 +39,13 @@ def find_base_dir(test_dir): print('test_dir: {}'.format(test_dir)) + import os + is_CI = os.environ.get('CI', None) + workspace = Path(os.environ['GITHUB_WORKSPACE']).resolve() + print('CI : {}\n workspace: {}'.format(is_CI, workspace)) + if not base_dir_in.exists(): - import os - CI = os.environ.get('CI', None) - if CI: - workspace = Path(os.environ['GITHUB_WORKSPACE']).resolve() + if is_CI: print('CI workspace: {}'.format(workspace)) base_dir_in = workspace / 'example_data' if not base_dir_in.exists():