⬆ Upgrade to Pydantic v2 and Python 3.11 #75
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
pull_request: {} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: pip install -r requirements/linting.txt -r requirements/pyproject.txt | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
test: | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis:6 | |
ports: | |
- 6379:6379 | |
options: '--entrypoint redis-server' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: pip install -r requirements/testing.txt -r requirements/pyproject.txt | |
- run: make test | |
- run: coverage xml | |
- uses: codecov/codecov-action@v2 | |
with: | |
file: ./coverage.xml |