diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b5907aa..8ea205b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/skycalc_ipy/ui.py b/skycalc_ipy/ui.py index 9bcfdb5..35d1584 100644 --- a/skycalc_ipy/ui.py +++ b/skycalc_ipy/ui.py @@ -8,6 +8,7 @@ from astropy import units as u from astropy.io import fits +from yaml import Loader from .core import AlmanacQuery, SkyModel @@ -216,9 +217,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