Skip to content

Added uv setup

Added uv setup #159

Workflow file for this run

name: Tests
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run tests
env:
LLAMA_MODEL_PATH: /fake/path/to/model.gguf
LLAMA_CLI_PATH: /fake/path/to/llama-cli
LLAMA_SERVER_URL: http://localhost:8080
OPENAI_API_KEY: fake-api-key
run: uv run pytest -vv tests || [ $? -eq 5 ]