Add input no-project in combination with activate-environment (#856)

Closes: #854
This commit is contained in:
Kevin Stillhammer
2026-04-16 15:48:02 +02:00
committed by GitHub
parent 7dd591db95
commit b3e97d2ba1
8 changed files with 71 additions and 4 deletions

View File

@@ -218,13 +218,17 @@ async function activateEnvironment(inputs: SetupInputs): Promise<void> {
}
core.info(`Creating and activating python venv at ${inputs.venvPath}...`);
await exec.exec("uv", [
const venvArgs = [
"venv",
inputs.venvPath,
"--directory",
inputs.workingDirectory,
"--clear",
]);
];
if (inputs.noProject) {
venvArgs.push("--no-project");
}
await exec.exec("uv", venvArgs);
let venvBinPath = `${inputs.venvPath}${path.sep}bin`;
if (process.platform === "win32") {