llama-stack-mirror/.github/actions/setup-runner/action.yml
Sébastien Han 822e87907c
chore: use uv build backend
The uv build backend is a great choice for most Python projects. It has
reasonable defaults, with the goal of requiring zero configuration for
most users, but provides flexible configuration to accommodate most
Python project structures. It integrates tightly with uv, to improve
messaging and user experience. It validates project metadata and
structures, preventing common mistakes. And, finally, it's very fast.

uv_build backend was declared stable and ready to use in 0.7.20.
Reference: https://docs.astral.sh/uv/concepts/build-backend/

Signed-off-by: Sébastien Han <seb@redhat.com>
2025-07-15 14:26:40 +02:00

27 lines
959 B
YAML

name: Setup runner
description: Prepare a runner for the tests (install uv, python, project dependencies, etc.)
inputs:
python-version:
description: The Python version to use
required: false
default: "3.12"
runs:
using: "composite"
steps:
- name: Install uv
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
with:
python-version: ${{ inputs.python-version }}
activate-environment: true
version: 0.7.20
- name: Install dependencies
shell: bash
run: |
uv sync --all-groups
uv pip install ollama faiss-cpu
# always test against the latest version of the client
# TODO: this is not necessarily a good idea. we need to test against both published and latest
# to find out backwards compatibility issues.
uv pip install git+https://github.com/meta-llama/llama-stack-client-python.git@main
uv pip install -e .