Skip to content

[RFC] Use pydantic

[RFC] Use pydantic #84

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install
run: pip install .[dev]
- name: Pre-commit
run: pre-commit run --all-files
- name: Test
run: pytest
example:
name: Example
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
- name: Install
run: pip install .[example]
- name: Run example
run: scripts/run-example