log info on venv activation

This commit is contained in:
Kevin Stillhammer 2025-04-17 20:50:13 +02:00
parent d4b2f3b6ec
commit f5087509d3
No known key found for this signature in database
2 changed files with 2 additions and 8 deletions

5
dist/setup/index.js generated vendored
View file

@ -124394,12 +124394,9 @@ async function setupPython() {
if (inputs_1.pythonVersion !== "") {
core.exportVariable("UV_PYTHON", inputs_1.pythonVersion);
core.info(`Set UV_PYTHON to ${inputs_1.pythonVersion}`);
const options = {
silent: !core.isDebug(),
};
const execArgs = ["venv", "--python", inputs_1.pythonVersion];
core.info("Activating python venv...");
await exec.exec("uv", execArgs, options);
await exec.exec("uv", execArgs);
let venvBinPath = ".venv/bin";
if (process.platform === "win32") {
venvBinPath = ".venv/Scripts";

View file

@ -167,13 +167,10 @@ async function setupPython(): Promise<void> {
if (pythonVersion !== "") {
core.exportVariable("UV_PYTHON", pythonVersion);
core.info(`Set UV_PYTHON to ${pythonVersion}`);
const options: exec.ExecOptions = {
silent: !core.isDebug(),
};
const execArgs = ["venv", "--python", pythonVersion];
core.info("Activating python venv...");
await exec.exec("uv", execArgs, options);
await exec.exec("uv", execArgs);
let venvBinPath = ".venv/bin";
if (process.platform === "win32") {