a7d6d88f6f
CI / changes (push) Has been cancelled
CI / cd libs/checkpoint (push) Has been cancelled
CI / cd libs/checkpoint-conformance (push) Has been cancelled
CI / cd libs/checkpoint-postgres (push) Has been cancelled
CI / cd libs/checkpoint-sqlite (push) Has been cancelled
CI / cd libs/cli (push) Has been cancelled
CI / cd libs/prebuilt (push) Has been cancelled
CI / cd libs/sdk-py (push) Has been cancelled
CI / cd libs/langgraph (push) Has been cancelled
CI / Check SDK methods matching (push) Has been cancelled
CI / Check CLI schema hasn't changed #3.13 (push) Has been cancelled
CI / CLI integration test (push) Has been cancelled
CI / sdk-py integration test (push) Has been cancelled
CI / CI Success (push) Has been cancelled
baseline / benchmark (push) Has been cancelled
Deploy Redirects to GitHub Pages / deploy (push) Has been cancelled
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
# Helper to set up Python and uv with caching
|
|
|
|
name: uv-install
|
|
description: Set up Python and uv with caching
|
|
|
|
inputs:
|
|
python-version:
|
|
description: Python version, supporting MAJOR.MINOR only
|
|
required: true
|
|
enable-cache:
|
|
description: Enable caching for uv dependencies
|
|
required: false
|
|
default: "true"
|
|
cache-suffix:
|
|
description: Custom cache key suffix for cache invalidation
|
|
required: false
|
|
default: ""
|
|
working-directory:
|
|
description: Working directory for cache glob scoping
|
|
required: false
|
|
default: "**"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install uv and set the python version
|
|
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
enable-cache: ${{ inputs.enable-cache }}
|
|
cache-dependency-glob: |
|
|
${{ inputs.working-directory }}/pyproject.toml
|
|
${{ inputs.working-directory }}/uv.lock
|
|
${{ inputs.working-directory }}/requirements*.txt
|
|
cache-suffix: ${{ inputs.cache-suffix }}
|