Skip to content

Commit

Permalink
more helpful info into CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
raamana committed Apr 26, 2024
1 parent e6e181d commit 5ae48f1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions graynet/tests/test_graynet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 5ae48f1

Please sign in to comment.