Skip to content

fixes for pydantic 2 #272

fixes for pydantic 2

fixes for pydantic 2 #272

name: CI
on:
push:
branches:
- main
tags:
- '*'
pull_request:
branches:
- '*'
jobs:
python-tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
fail-fast: false
matrix:
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install build-essential libsystemd-dev libpython3-dev
python -m pip install --upgrade pip
python -m pip install tox==3.28.0 tox-envfile
docker pull mongo:4.2.16
docker pull postgres:13
- name: Test with tox
run: tox -e test
- name: Check style
run: tox -e style
- name: Upload coverage to Codecov
if: matrix.python-version == 3.10
run: bash <(curl -s https://codecov.io/bash)
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: |
make init-env
docker-compose build