Skip to content

Commit

Permalink
Use mambaforge for CI. (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasraabe authored Jan 23, 2023
1 parent f1cab2e commit d6cc6f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
auto-update-conda: false
python-version: ${{ matrix.python-version }}
channels: conda-forge,nodefaults
mamba-version: "*"
miniforge-variant: Mambaforge

- name: Install core dependencies.
shell: bash -l {0}
Expand Down
13 changes: 3 additions & 10 deletions tests/test_execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,22 +261,13 @@ def task_run_jl_script():
reason="Test folder and repo are on different drives causing relpath to fail.",
)
@parametrize_parse_code_serializer_suffix
@pytest.mark.parametrize(
("config_path", "value"),
[
("pytask.ini", "[pytask]\njulia_project={}"),
("pyproject.toml", "[tool.pytask.ini_options]\njulia_project='{}'"),
],
)
@pytest.mark.parametrize("path", [ROOT, "relative_from_config"])
def test_run_jl_script_w_environment_in_config(
runner,
tmp_path,
parse_config_code,
serializer,
suffix,
config_path,
value,
path,
):
task_source = f"""
Expand Down Expand Up @@ -307,7 +298,9 @@ def task_run_jl_script():
if isinstance(path, Path)
else Path(os.path.relpath(ROOT, tmp_path)).as_posix()
)
tmp_path.joinpath(config_path).write_text(value.format(path_in_config))
tmp_path.joinpath("pyproject.toml").write_text(
f"[tool.pytask.ini_options]\njulia_project='{path_in_config}'"
)

result = runner.invoke(cli, [tmp_path.as_posix()])

Expand Down

0 comments on commit d6cc6f3

Please sign in to comment.