Skip to content

Add support for standard list type hints #31

Add support for standard list type hints

Add support for standard list type hints #31

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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Flask-Parameter-Validation Unit Tests
on:
push:
branches: [ "master", "github-ci" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
cd flask_parameter_validation/test
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with Pytest
run: |
cd flask_parameter_validation
pytest