Skip to content

Cu 8695d4www pydantic 2 workflow #1

Cu 8695d4www pydantic 2 workflow

Cu 8695d4www pydantic 2 workflow #1

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.11' ] # NOTE: only running on first and last supported versions
pydantic-version: [ '>=1.10,<2.0', '>=2.0,<3.0']
max-parallel: 4
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install "pydantic==${{ matrix.python-version }}"
- name: Check types for pydantic${{ matrix.python-version }}
run: |
python -m mypy --follow-imports=normal medcat