Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
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