Skip to content

Commit 61ac691

Browse files
authored
Merge pull request #59 from satyam-seth-learnings/setup-basic-checks-workflow
Add basic check workflow
2 parents abadea3 + 6bb4bad commit 61ac691

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: 🚦 Basic Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
quality-checks:
11+
name: Quality Checks
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: 📥 Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: 🐍 Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.12"
22+
23+
- name: 📦 Install dependencies
24+
run: pip install -r requirements.txt
25+
26+
- name: 🎨 Run black (formatting)
27+
run: black --check .
28+
29+
- name: 🧹 Run isort (import sorting)
30+
run: isort --check-only .
31+
32+
- name: 🧐 Run mypy (type checking)
33+
run: mypy .
34+
35+
- name: 🔍 Run pylint (linting)
36+
run: pylint **/*.py
37+
38+
- name: 🧪 Run tests with coverage
39+
run: coverage run manage.py test
40+
41+
- name: 📊 Generate coverage report (fail if <85%)
42+
run: coverage report --fail-under=85

0 commit comments

Comments
 (0)