Skip to content

updates

updates #21

Workflow file for this run

name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.12']
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync --extra dev
- name: Run tests
run: |
uv run pytest -v --tb=short -k "not integration"
- name: Test examples (Ubuntu only)
if: matrix.os == 'ubuntu-latest'
env:
# Use mock API key for testing examples
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY || 'mock-key-for-testing' }}
run: |
# Test that examples can be imported without API calls
uv run python -c "import sys; sys.path.append('examples'); import importlib.util"