mirror of https://github.com/langgenius/dify.git
35 lines
877 B
YAML
35 lines
877 B
YAML
name: Setup UV and Python
|
|
|
|
inputs:
|
|
python-version:
|
|
description: Python version to use and the UV installed with
|
|
required: true
|
|
default: '3.12'
|
|
uv-version:
|
|
description: UV version to set up
|
|
required: true
|
|
default: '0.8.9'
|
|
uv-lockfile:
|
|
description: Path to the UV lockfile to restore cache from
|
|
required: true
|
|
default: ''
|
|
enable-cache:
|
|
required: true
|
|
default: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Set up Python ${{ inputs.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.python-version }}
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v6
|
|
with:
|
|
version: ${{ inputs.uv-version }}
|
|
python-version: ${{ inputs.python-version }}
|
|
enable-cache: ${{ inputs.enable-cache }}
|
|
cache-dependency-glob: ${{ inputs.uv-lockfile }}
|