# .github/workflows/test.yml
name: Run Tests
on: [push] # Trigger on push events to any branch
jobs:
build_and_test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # Don't cancel other jobs if one fails
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ['3.11', '3.12', '3.x']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: pip install uv
- name: Create and activate virtual environment
run: uv venv
- name: Install dependencies
run: uv pip install .[dev]
- name: Run tests with pytest
run: uv run pytest
- name: Run jinni usage
run: uv run -- jinni --usage