Merge pull request #19 from verkada/jackkeane/typed-multidict-parsing #103
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: Testing + Static Analysis | |
on: | |
pull_request: | |
branches: | |
- master | |
- dev | |
push: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 3 | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements/development.txt | |
- name: Lint with flake8 | |
run: | | |
make style | |
- name: Test with pytest | |
run: | | |
make test | |
- name: Check formatting | |
run: | | |
pip install -r requirements/development.txt | |
black --check tests flask_pydantic_spec | |
mypy flask_pydantic_spec |