mirror of
https://github.com/astral-sh/setup-uv.git
synced 2025-07-15 10:31:20 +00:00
Add uv-path and uvx-path output (#341)
Some checks failed
CodeQL / Analyze (TypeScript) (push) Failing after 26s
Release Drafter / ✏️ Draft release (push) Failing after 9s
test / lint (push) Successful in 1m32s
test / test-default-version (ubuntu-latest) (push) Successful in 27s
test / test-specific-version (0.3) (push) Successful in 41s
test / test-specific-version (0.3.0) (push) Successful in 33s
test / test-specific-version (0.3.2) (push) Successful in 32s
test / test-specific-version (0.3.x) (push) Successful in 54s
test / test-specific-version (>=0.3.0) (push) Successful in 38s
test / test-semver-range (push) Successful in 38s
test / test-pyproject-file-version (push) Successful in 23s
test / test-malformed-pyproject-file-fallback (push) Successful in 33s
test / test-uv-file-version (push) Successful in 20s
test / test-checksum (map[checksum:4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd os:ubuntu-latest]) (push) Successful in 31s
test / test-with-explicit-token (push) Successful in 38s
test / test-uvx (push) Successful in 35s
test / test-tool-install (ubuntu-latest) (push) Successful in 42s
test / test-python-version (macos-latest) (push) Successful in 1m30s
test / test-python-version (ubuntu-latest) (push) Successful in 56s
test / test-python-version (windows-latest) (push) Successful in 1m0s
test / test-musl (push) Failing after 14s
test / test-setup-cache (auto, ubuntu-latest) (push) Successful in 33s
test / test-setup-cache (false, ubuntu-latest) (push) Successful in 33s
test / test-setup-cache (true, ubuntu-latest) (push) Successful in 9m41s
test / test-setup-cache-requirements-txt (push) Successful in 9m32s
test / test-setup-cache-dependency-glob (push) Successful in 9m33s
test / test-no-python-version (push) Successful in 9m40s
test / test-restore-cache-dependency-glob (push) Successful in 9m27s
test / test-default-version (macos-14) (push) Has been cancelled
test / test-default-version (macos-latest) (push) Has been cancelled
test / test-default-version (windows-latest) (push) Has been cancelled
test / test-checksum (map[checksum:a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218 os:macos-latest]) (push) Has been cancelled
test / test-tool-install (macos-14) (push) Has been cancelled
test / test-tool-install (macos-latest) (push) Has been cancelled
test / test-tool-install (windows-latest) (push) Has been cancelled
test / test-tilde-expansion-tool-dirs (push) Has been cancelled
test / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (auto, windows-latest) (push) Has been cancelled
test / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (false, windows-latest) (push) Has been cancelled
test / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (true, windows-latest) (push) Has been cancelled
test / test-setup-cache-local (push) Has been cancelled
test / test-tilde-expansion-cache-local-path (push) Has been cancelled
test / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
test / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (auto, windows-latest) (push) Has been cancelled
test / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (false, windows-latest) (push) Has been cancelled
test / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (true, windows-latest) (push) Has been cancelled
test / test-restore-cache-requirements-txt (push) Has been cancelled
test / test-restore-cache-local (push) Has been cancelled
test / cleanup-tilde-expansion-tests (push) Has been cancelled
test / all-tests-passed (push) Has been cancelled
Update known checksums / build (push) Failing after 11s
Some checks failed
CodeQL / Analyze (TypeScript) (push) Failing after 26s
Release Drafter / ✏️ Draft release (push) Failing after 9s
test / lint (push) Successful in 1m32s
test / test-default-version (ubuntu-latest) (push) Successful in 27s
test / test-specific-version (0.3) (push) Successful in 41s
test / test-specific-version (0.3.0) (push) Successful in 33s
test / test-specific-version (0.3.2) (push) Successful in 32s
test / test-specific-version (0.3.x) (push) Successful in 54s
test / test-specific-version (>=0.3.0) (push) Successful in 38s
test / test-semver-range (push) Successful in 38s
test / test-pyproject-file-version (push) Successful in 23s
test / test-malformed-pyproject-file-fallback (push) Successful in 33s
test / test-uv-file-version (push) Successful in 20s
test / test-checksum (map[checksum:4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd os:ubuntu-latest]) (push) Successful in 31s
test / test-with-explicit-token (push) Successful in 38s
test / test-uvx (push) Successful in 35s
test / test-tool-install (ubuntu-latest) (push) Successful in 42s
test / test-python-version (macos-latest) (push) Successful in 1m30s
test / test-python-version (ubuntu-latest) (push) Successful in 56s
test / test-python-version (windows-latest) (push) Successful in 1m0s
test / test-musl (push) Failing after 14s
test / test-setup-cache (auto, ubuntu-latest) (push) Successful in 33s
test / test-setup-cache (false, ubuntu-latest) (push) Successful in 33s
test / test-setup-cache (true, ubuntu-latest) (push) Successful in 9m41s
test / test-setup-cache-requirements-txt (push) Successful in 9m32s
test / test-setup-cache-dependency-glob (push) Successful in 9m33s
test / test-no-python-version (push) Successful in 9m40s
test / test-restore-cache-dependency-glob (push) Successful in 9m27s
test / test-default-version (macos-14) (push) Has been cancelled
test / test-default-version (macos-latest) (push) Has been cancelled
test / test-default-version (windows-latest) (push) Has been cancelled
test / test-checksum (map[checksum:a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218 os:macos-latest]) (push) Has been cancelled
test / test-tool-install (macos-14) (push) Has been cancelled
test / test-tool-install (macos-latest) (push) Has been cancelled
test / test-tool-install (windows-latest) (push) Has been cancelled
test / test-tilde-expansion-tool-dirs (push) Has been cancelled
test / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (auto, windows-latest) (push) Has been cancelled
test / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (false, windows-latest) (push) Has been cancelled
test / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-setup-cache (true, windows-latest) (push) Has been cancelled
test / test-setup-cache-local (push) Has been cancelled
test / test-tilde-expansion-cache-local-path (push) Has been cancelled
test / test-tilde-expansion-cache-dependency-glob (push) Has been cancelled
test / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (auto, windows-latest) (push) Has been cancelled
test / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (false, windows-latest) (push) Has been cancelled
test / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Has been cancelled
test / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (true, windows-latest) (push) Has been cancelled
test / test-restore-cache-requirements-txt (push) Has been cancelled
test / test-restore-cache-local (push) Has been cancelled
test / cleanup-tilde-expansion-tests (push) Has been cancelled
test / all-tests-passed (push) Has been cancelled
Update known checksums / build (push) Failing after 11s
Closes: #338
This commit is contained in:
committed by
GitHub
parent
bf8ec1ea35
commit
22695119d7
6
dist/setup/index.js
generated
vendored
6
dist/setup/index.js
generated
vendored
@ -123418,7 +123418,7 @@ async function run() {
|
||||
throw new Error(`Unsupported architecture: ${process.arch}`);
|
||||
}
|
||||
const setupResult = await setupUv(platform, arch, inputs_1.checkSum, inputs_1.githubToken);
|
||||
addUvToPath(setupResult.uvDir);
|
||||
addUvToPathAndOutput(setupResult.uvDir);
|
||||
addToolBinToPath();
|
||||
setToolDir();
|
||||
await setupPython();
|
||||
@ -123480,7 +123480,9 @@ async function determineVersion() {
|
||||
const versionFromConfigFile = (0, pyproject_1.getUvVersionFromConfigFile)(versionFile);
|
||||
return await (0, download_version_1.resolveVersion)(versionFromConfigFile || "latest", inputs_1.githubToken);
|
||||
}
|
||||
function addUvToPath(cachedPath) {
|
||||
function addUvToPathAndOutput(cachedPath) {
|
||||
core.setOutput("uv-path", `${cachedPath}${path.sep}uv`);
|
||||
core.setOutput("uvx-path", `${cachedPath}${path.sep}uvx`);
|
||||
core.addPath(cachedPath);
|
||||
core.info(`Added ${cachedPath} to the path`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user