Support plugins for ui templates #180
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
# 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 | |
pip install -e .[swagger] | |
# pip install -e .[swagger,redoc,rapidoc,rapipdf,scalar,elements] | |
- 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 |