13a79244ac
Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
42 lines
832 B
YAML
42 lines
832 B
YAML
name: Code Quality
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, develop ]
|
|
pull_request:
|
|
branches: [ main, develop ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install black ruff mypy
|
|
pip install -r backend/requirements.txt
|
|
|
|
- name: Check code formatting with Black
|
|
run: |
|
|
black --check backend/
|
|
|
|
- name: Lint with Ruff
|
|
run: |
|
|
ruff check backend/
|
|
|
|
- name: Type check with mypy
|
|
run: |
|
|
mypy backend/app --ignore-missing-imports
|
|
continue-on-error: true
|