name: Test

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: chartboost/ruff-action@v1
    - name: Install uv
      uses: astral-sh/setup-uv@v5
    - name: Set up Python
      run: uv python install
    - name: Create virtual environment
      run: uv venv
    - name: Install dependencies
      run: uv pip install -e ".[dev]"
    - name: Run tests
      run: uv run pytest
