add action to setup uv and python

This commit is contained in:
Chester Curme 2025-02-03 11:28:26 -05:00
parent a1a6ef10a9
commit e034999cb6

23
.github/actions/uv_setup/action.yml vendored Normal file
View 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 }}