llama-stack-mirror/.github/workflows/python-build-test.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

45 lines
1 KiB
YAML

name: Python Package Build Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.12', '3.13']
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@bd01e18f51369d5a26f1651c3cb451d3417e3bba # v6.3.1
with:
python-version: ${{ matrix.python-version }}
activate-environment: true
version: 0.7.20
- name: Build Llama Stack package
run: |
uv build
- name: Install Llama Stack package
run: |
uv pip install dist/*.whl
- name: Verify Llama Stack package
run: |
uv pip list
uv pip show llama-stack
command -v llama
llama model prompt-format -m Llama3.2-90B-Vision-Instruct
llama model list
llama stack list-apis
llama stack list-providers inference