Skip to content

Commit

Permalink
Fix GitHub Actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
bourque committed Mar 19, 2021
1 parent 4ff3af7 commit b7a0461
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jwql/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@

__location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))

ON_GITHUB_ACTIONS = '/home/runner' in os.path.expanduser('~') or '/Users/runner' in os.path.expanduser('~')


def _validate_config(config_file_dict):
"""Check that the config.json file contains all the needed entries with
Expand Down Expand Up @@ -141,7 +143,8 @@ def get_config():

return settings

FILESYSTEM = get_config()['filesystem']
if not ON_GITHUB_ACTIONS:
FILESYSTEM = get_config()['filesystem']


def copy_files(files, out_dir):
Expand Down

0 comments on commit b7a0461

Please sign in to comment.