Skip to content

Commit d6cc6f3

Browse files
authored
Use mambaforge for CI. (#20)
1 parent f1cab2e commit d6cc6f3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
auto-update-conda: false
3737
python-version: ${{ matrix.python-version }}
3838
channels: conda-forge,nodefaults
39-
mamba-version: "*"
39+
miniforge-variant: Mambaforge
4040

4141
- name: Install core dependencies.
4242
shell: bash -l {0}

tests/test_execute.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -261,22 +261,13 @@ def task_run_jl_script():
261261
reason="Test folder and repo are on different drives causing relpath to fail.",
262262
)
263263
@parametrize_parse_code_serializer_suffix
264-
@pytest.mark.parametrize(
265-
("config_path", "value"),
266-
[
267-
("pytask.ini", "[pytask]\njulia_project={}"),
268-
("pyproject.toml", "[tool.pytask.ini_options]\njulia_project='{}'"),
269-
],
270-
)
271264
@pytest.mark.parametrize("path", [ROOT, "relative_from_config"])
272265
def test_run_jl_script_w_environment_in_config(
273266
runner,
274267
tmp_path,
275268
parse_config_code,
276269
serializer,
277270
suffix,
278-
config_path,
279-
value,
280271
path,
281272
):
282273
task_source = f"""
@@ -307,7 +298,9 @@ def task_run_jl_script():
307298
if isinstance(path, Path)
308299
else Path(os.path.relpath(ROOT, tmp_path)).as_posix()
309300
)
310-
tmp_path.joinpath(config_path).write_text(value.format(path_in_config))
301+
tmp_path.joinpath("pyproject.toml").write_text(
302+
f"[tool.pytask.ini_options]\njulia_project='{path_in_config}'"
303+
)
311304

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

0 commit comments

Comments
 (0)