Skip to content

Merge pull request #2 from RobertoMaurizzi/upgrade-to-pydantic-2.8.2 #14

Merge pull request #2 from RobertoMaurizzi/upgrade-to-pydantic-2.8.2

Merge pull request #2 from RobertoMaurizzi/upgrade-to-pydantic-2.8.2 #14

Workflow file for this run

name: Python tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade poetry
poetry install
- name: Lint with flake8
if: always()
run: |
poetry run flake8 .
- name: Test mypy
if: always()
run: poetry run mypy .
- name: Test with black
if: always()
run: poetry run black --check .
- name: Test with pytest
if: always()
run: poetry run pytest --cov
- name: Produce coverage XML
run: poetry run coverage xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true