Skip to content

refactor(scripts): rename fetch_models to print_model_contracts #4

refactor(scripts): rename fetch_models to print_model_contracts

refactor(scripts): rename fetch_models to print_model_contracts #4

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
pyproject.toml
requirements.lock
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.lock
pip install -e ".[dev]" --no-deps
- name: Lint (ruff)
run: ruff check .
- name: Type check (mypy)
run: mypy src/
- name: Test (pytest)
run: pytest tests/ -v