Skip to content

First commit

First commit #1

Workflow file for this run

name: tests
on:
push:
branches: [ main ]
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
pull_request:
branches: [ main ]
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
env:
PYTHONPATH: .
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install dependencies
run: uv sync
- name: Test with pytest
run: uv run pytest tests
- name: ruff
run: uv run ruff check star_openapi tests examples
- name: Cache mypy
uses: actions/cache@v5
with:
path: ./.mypy_cache
key: mypy|${{ matrix.python-version }}|${{ hashFiles('pyproject.toml') }}
- name: Run mypy
run: uv run mypy star_openapi