Skip to content

Commit 5ae48f1

Browse files
committed
more helpful info into CI setup
1 parent e6e181d commit 5ae48f1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

graynet/tests/test_graynet.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ def find_base_dir(test_dir):
3939

4040
print('test_dir: {}'.format(test_dir))
4141

42+
import os
43+
is_CI = os.environ.get('CI', None)
44+
workspace = Path(os.environ['GITHUB_WORKSPACE']).resolve()
45+
print('CI : {}\n workspace: {}'.format(is_CI, workspace))
46+
4247
if not base_dir_in.exists():
43-
import os
44-
CI = os.environ.get('CI', None)
45-
if CI:
46-
workspace = Path(os.environ['GITHUB_WORKSPACE']).resolve()
48+
if is_CI:
4749
print('CI workspace: {}'.format(workspace))
4850
base_dir_in = workspace / 'example_data'
4951
if not base_dir_in.exists():

0 commit comments

Comments
 (0)