25 lines
533 B
YAML
25 lines
533 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
|
|
jobs:
|
|
pytest:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: astral-sh/setup-uv@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache-dependency-glob: "**/pyproject.toml"
|
|
- name: Install dependencies
|
|
run: uv sync --dev
|
|
- name: Run pytest
|
|
run: uv run pytest -v --timeout=30
|