Files
wehub-resource-sync b7f52be4c9
CI / Run CI (push) Has been cancelled
CI / check-backend (push) Has been cancelled
CI / check-frontend (push) Has been cancelled
CI / tests (push) Has been cancelled
CI / e2e-tests (push) Has been cancelled
Copilot Setup Steps / copilot-setup-steps (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:48:47 +08:00

38 lines
1.0 KiB
YAML

name: Install Python, uv and dependencies.
description: Install Python, uv and project dependencies using cache
inputs:
python-version:
description: Python version
required: true
default: '3.10'
uv-version:
description: uv version
required: true
default: 'latest'
uv-args:
description: Extra uv args, for example dependencies to install, e.g. --extra tests --extra dev.
required: false
working-directory:
description: Working directory for uv command.
required: false
default: .
runs:
using: composite
steps:
- name: Install uv
uses: astral-sh/setup-uv@v8.0.0
with:
version: ${{ inputs.uv-version }}
enable-cache: true
- name: Set up Python ${{ inputs.python-version }}
id: setup_python
uses: actions/setup-python@v6.2.0
with:
python-version: ${{ inputs.python-version }}
- name: Install Python dependencies
run: uv sync --all-packages ${{ inputs.uv-args }}
shell: bash
working-directory: ${{ inputs.working-directory }}