Skip to content

Update special token handling for new llama.cpp API #8

Update special token handling for new llama.cpp API

Update special token handling for new llama.cpp API #8

Workflow file for this run

name: Pull Request Gate
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
unit-tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.10", "3.11", "3.12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Minimal install
run: |
pip install -e .
- name: Attempt import
run: |
python -c "import guidance"
- name: Bigger install
shell: bash
run: |
python -m pip install --upgrade pip
pip install -e .[babytest]
- name: Unit Tests
run: |
pytest -vv ./tests/unit