diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42228a9..8cebca0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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} diff --git a/tests/test_execute.py b/tests/test_execute.py index 2bc68cf..6662c52 100644 --- a/tests/test_execute.py +++ b/tests/test_execute.py @@ -261,13 +261,6 @@ 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, @@ -275,8 +268,6 @@ def test_run_jl_script_w_environment_in_config( parse_config_code, serializer, suffix, - config_path, - value, path, ): task_source = f""" @@ -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()])