Added mypy type checking #2
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: Python CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.lock | |
pip install -r requirements-dev.lock | |
- name: Run formatting | |
run: ruff format --check . | |
- name: Run linting | |
run: ruff check src/fastapi_image | |
- name: Run mypy type checking | |
run: mypy src/fastapi_image | |
- name: Run tests | |
run: python -m pytest |