-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 918 Bytes
/
basic-checks.yaml
File metadata and controls
42 lines (31 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: 🚦 Basic Checks
on:
push:
branches:
- main
pull_request:
jobs:
quality-checks:
name: Quality Checks
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.12"
- name: 📦 Install dependencies
run: pip install -r requirements.txt
- name: 🎨 Run black (formatting)
run: black --check .
- name: 🧹 Run isort (import sorting)
run: isort --check-only .
- name: 🧐 Run mypy (type checking)
run: mypy .
- name: 🔍 Run pylint (linting)
run: pylint **/*.py
- name: 🧪 Run tests with coverage
run: coverage run manage.py test
- name: 📊 Generate coverage report (fail if <85%)
run: coverage report --fail-under=85