Skip to content

Merge pull request #1 from somebox/copilot/add-github-actions-ci #3

Merge pull request #1 from somebox/copilot/add-github-actions-ci

Merge pull request #1 from somebox/copilot/add-github-actions-ci #3

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version: ["3.11", "3.12"]
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
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Install dependencies
run: uv sync --all-extras
- name: Run tests
run: uv run pytest tests/ -v
- name: Run ruff linting
run: uv run ruff check src/ tests/