Skip to content

Do not remove all kwargs when calling view. #154

Do not remove all kwargs when calling view.

Do not remove all kwargs when calling view. #154

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: tests
on:
push:
branches: [ master ]
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
pull_request:
branches: [ master ]
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
flask-version: [ "Flask>=2.0,<3.0", "Flask>=3.0" ]
env:
PYTHONPATH: .
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
cache: "pip"
cache-dependency-path: "requirements/*.txt"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U "${{ matrix.flask-version }}"
pip install -U pydantic
pip install -U -r ./requirements/test.txt
pip install -U -r ./requirements/flake8.txt
pip install -U -r ./requirements/mypy.txt
- name: Test with pytest
run: pytest tests
- name: Flake8
run: flake8 flask_openapi3 examples tests
- name: cache mypy
uses: actions/cache@v4
with:
path: ./.mypy_cache
key: mypy|${{ matrix.python-version }}|${{ hashFiles('pyproject.toml') }}
- name: mypy
run: mypy flask_openapi3