Thanks to visit codestin.com
Credit goes to github.com

Skip to content
4 changes: 2 additions & 2 deletions .github/scripts/generate_yml_env_fixed_py.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def environment_yml_nopy(fn_env: str, py_version: str, add_deps: list[str] = Non

# Optionally, add other dependencies
if add_deps is not None:
conda_dep_env_forced_py.extend(add_deps)
conda_dep_env_forced_py.extend(add_deps.split(","))

# Copy back to new yaml dict
yaml_out = yaml_env.copy()
Expand Down Expand Up @@ -51,4 +51,4 @@ def environment_yml_nopy(fn_env: str, py_version: str, add_deps: list[str] = Non
help="List of dependencies to add.",
)
args = parser.parse_args()
environment_yml_nopy(fn_env=args.fn_env, py_version=args.py_version, add_deps=args.add_deps.split(","))
environment_yml_nopy(fn_env=args.fn_env, py_version=args.py_version, add_deps=args.add_deps)
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
python .github/scripts/generate_yml_env_fixed_py.py --pyv ${{ matrix.python-version }} --add "gdal" "environment.yml"
mamba env update -n geoutils-dev -f environment-ci-py${{ matrix.python-version }}.yml

# If/else equivalent to install base environment, or base+optionnal
# If/else equivalent to install base environment, or base+optional
- name: Install project environment (base)
if: ${{ matrix.dep-level == 'base' }}
run: pip install -e .[test]
Expand Down
Loading