mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-18 19:18:48 +00:00
This PR updates an outdated GitHub Action version. - Updated `astral-sh/setup-uv` from `v6` to `v7` in `.github/actions/uv_setup/action.yml` Looks like this was missed as part of https://github.com/langchain-ai/langchain/pull/33457 so hopefully safe to bring it into alignment.
40 lines
1.1 KiB
YAML
40 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: "**"
|
|
|
|
env:
|
|
UV_VERSION: "0.5.25"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install uv and set the python version
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
version: ${{ env.UV_VERSION }}
|
|
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 }}
|