2024-09-05 08:06:45 -04:00
|
|
|
name: "Python setup uv"
|
|
|
|
description: "Set up your GitHub Actions workflow with a specific version of uv"
|
|
|
|
author: "eifinger"
|
2024-08-23 23:58:26 +02:00
|
|
|
inputs:
|
2024-09-04 17:14:10 -04:00
|
|
|
version:
|
2024-09-05 08:06:45 -04:00
|
|
|
description: "The version of uv to install"
|
2024-09-05 09:24:32 -04:00
|
|
|
default: "latest"
|
2024-08-23 23:58:26 +02:00
|
|
|
checksum:
|
2024-09-05 08:06:45 -04:00
|
|
|
description: "The checksum of the uv version to install"
|
2024-08-23 23:58:26 +02:00
|
|
|
required: false
|
|
|
|
github-token:
|
2024-09-04 17:14:10 -04:00
|
|
|
description:
|
2024-09-05 08:06:45 -04:00
|
|
|
"Used to increase the rate limit when retrieving versions and downloading
|
|
|
|
uv."
|
2024-08-23 23:58:26 +02:00
|
|
|
required: false
|
2024-09-11 10:18:23 +02:00
|
|
|
default: ${{ github.token }}
|
2024-08-23 23:58:26 +02:00
|
|
|
enable-cache:
|
2024-09-05 08:06:45 -04:00
|
|
|
description: "Enable caching of the uv cache"
|
|
|
|
default: "false"
|
2024-08-23 23:58:26 +02:00
|
|
|
cache-dependency-glob:
|
2024-09-04 17:14:10 -04:00
|
|
|
description:
|
2024-09-16 21:33:16 +02:00
|
|
|
"Glob pattern to match files relative to the repository root to control
|
|
|
|
the cache."
|
2024-09-16 21:08:44 +02:00
|
|
|
default: "**/uv.lock"
|
2024-08-23 23:58:26 +02:00
|
|
|
cache-suffix:
|
2024-09-05 08:06:45 -04:00
|
|
|
description: "Suffix for the cache key"
|
2024-08-23 23:58:26 +02:00
|
|
|
required: false
|
|
|
|
cache-local-path:
|
2024-09-05 08:06:45 -04:00
|
|
|
description: "Local path to store the cache."
|
2024-09-07 14:11:25 +02:00
|
|
|
default: ""
|
2024-08-23 23:58:26 +02:00
|
|
|
outputs:
|
|
|
|
uv-version:
|
2024-09-05 08:06:45 -04:00
|
|
|
description: "The installed uv version. Useful when using latest."
|
2024-08-23 23:58:26 +02:00
|
|
|
cache-hit:
|
2024-09-05 08:06:45 -04:00
|
|
|
description: "A boolean value to indicate a cache entry was found"
|
2024-08-23 23:58:26 +02:00
|
|
|
runs:
|
2024-09-05 08:06:45 -04:00
|
|
|
using: "node20"
|
|
|
|
main: "dist/setup/index.js"
|
|
|
|
post: "dist/save-cache/index.js"
|
2024-08-23 23:58:26 +02:00
|
|
|
post-if: success()
|
|
|
|
branding:
|
2024-09-05 08:06:45 -04:00
|
|
|
icon: "package"
|
|
|
|
color: "blue"
|