Skip to content

Merge pull request #46 from m-misiura/migrate-to-llama-stack-api #133

Merge pull request #46 from m-misiura/migrate-to-llama-stack-api

Merge pull request #46 from m-misiura/migrate-to-llama-stack-api #133

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
env:
PYTHON_VERSION: "3.12"
UV_VERSION: "0.8.11"
jobs:
pre-commit:
name: Pre-commit Checks
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: ${{ env.UV_VERSION }}
- name: Cache uv dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/uv
.venv
key: ${{ matrix.python-version }}-uv-${{ hashFiles('**/uv.lock') }}
restore-keys: |
${{ matrix.python-version }}-uv-
- name: Install dependencies
run: |
uv sync --extra dev
- name: Install pre-commit
run: |
uv run pip install pre-commit
- name: Run pre-commit on all files
run: |
uv run pre-commit run --all-files --show-diff-on-failure
- name: Run pre-commit on staged files (if any)
run: |
uv run pre-commit run --show-diff-on-failure