mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-27 08:58:48 +00:00
add action to setup uv and python
This commit is contained in:
parent
a1a6ef10a9
commit
e034999cb6
23
.github/actions/uv_setup/action.yml
vendored
Normal file
23
.github/actions/uv_setup/action.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# TODO: https://docs.astral.sh/uv/guides/integration/github/#caching
|
||||||
|
|
||||||
|
name: uv-install
|
||||||
|
description: Set up Python and uv
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
python-version:
|
||||||
|
description: Python version, supporting MAJOR.MINOR only
|
||||||
|
required: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
UV_VERSION: "0.5.25"
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install uv and set the python version
|
||||||
|
uses: astral-sh/setup-uv@v5
|
||||||
|
with:
|
||||||
|
version: ${{ env.UV_VERSION }}
|
||||||
|
python-version: ${{ inputs.python-version }}
|
Loading…
Reference in New Issue
Block a user