Functioning ingestion #1
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 Linting | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "**" | |
paths: | |
- "**.py" | |
jobs: | |
python-lint-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
cache-dependency-path: | | |
backend/requirements.txt | |
requirements-dev.txt | |
- run: | | |
python -m pip install --upgrade pip | |
pip install -r backend/requirements.txt | |
pip install -r requirements-dev.txt | |
- name: Run MyPy | |
run: | | |
mypy backend/app | |
- name: Run ruff | |
run: | | |
ruff check . | |
- name: Check code formatting with Black | |
run: | | |
cd backend | |
black --check . |