Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the Actions configuration and added Loader to yaml.load #4

Merged
merged 2 commits into from
Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.github_actions.txt
pip install .
- name: Run Pytest
run: pytest
4 changes: 2 additions & 2 deletions skycalc_ipy/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ def load_yaml(ipt_str):

with open(ipt_str, "r") as fd:
fd = "\n".join(fd.readlines())
opts_dict = yaml.load(fd)
opts_dict = yaml.load(fd, Loader=yaml.FullLoader)
else:
opts_dict = yaml.load(ipt_str)
opts_dict = yaml.load(ipt_str, Loader=yaml.FullLoader)

return opts_dict

Expand Down