From e034999cb60910431e7f2873cb20f697842abd08 Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Mon, 3 Feb 2025 11:28:26 -0500 Subject: [PATCH] add action to setup uv and python --- .github/actions/uv_setup/action.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/actions/uv_setup/action.yml diff --git a/.github/actions/uv_setup/action.yml b/.github/actions/uv_setup/action.yml new file mode 100644 index 00000000000..cfa50e8f3d8 --- /dev/null +++ b/.github/actions/uv_setup/action.yml @@ -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 }}