Skip to content

[Models] Add Phi3 to tests #327

[Models] Add Phi3 to tests

[Models] Add Phi3 to tests #327

Workflow file for this run

name: Server tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
server-tests:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "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: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .[all,test]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run server tests
shell: bash
run: |
pytest --cov=guidance --cov-report=xml --cov-report=term-missing \
-m server \
./tests/