forked from OpeningDesign/Bonsai_Tutorials
30 lines
719 B
YAML
30 lines
719 B
YAML
name: "Setup Python Environment"
|
|
description: "Set up Python environment for the given Python version"
|
|
|
|
inputs:
|
|
python-version:
|
|
description: "Python version to use"
|
|
required: true
|
|
default: "3.12"
|
|
uv-version:
|
|
description: "uv version to use"
|
|
required: true
|
|
default: "0.6.14"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- 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 }}
|
|
enable-cache: 'true'
|
|
cache-suffix: ${{ matrix.python-version }}
|
|
|
|
- name: Install Python dependencies
|
|
run: uv sync --frozen
|
|
shell: bash
|