Skip to content

Update to Pydantic V2 #41

Update to Pydantic V2

Update to Pydantic V2 #41

Workflow file for this run

name: Lint & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ 3.8, 3.9, "3.10" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: abatilo/actions-poetry@v2.1.3
with:
poetry-version: 1.5.1
- name: Install dependencies
run: |
poetry install --only main,test
- name: Run pre-commit checks
run: |
poetry run pre-commit run --all
- name: Run pytest -v
run: |
poetry run pytest --cov pydantic_appconfig --cov-report term-missing --cov-report xml
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml