Skip to content

pydantic settings

pydantic settings #88

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- name: checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: apt-get update
run: sudo apt-get update -y
- name: set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "pyproject.toml"
- name: install invoke
run: pip install invoke
- name: install
run: inv install
- name: lint
run: inv lint
- name: test
run: inv test
- name: upload coverage
if: github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true