Skip to content

Update to pydantic v2 #23

Update to pydantic v2

Update to pydantic v2 #23

Workflow file for this run

name: CI - Tests
on:
pull_request:
push:
branches:
- 'main'
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel flit
pip install .[dev]
- name: Test with pre-commit
run: SKIP=pylint pre-commit run --all-files
pylint-safety:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install -U pip
pip install -U setuptools wheel flit
pip install -e .[dev]
pip install safety
- name: Run pylint
run: pylint --rcfile=pyproject.toml --extension-pkg-whitelist='pydantic' -- s7
- name: Run safety
run: pip freeze | safety check --stdin
build-package:
name: Build distribution package
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install -U pip
pip install -U setuptools wheel flit
- name: Check building distribution
run: flit build