Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/django_ci_cd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Django CI/CD

# Triggers when making a pull request to main and commits to main
on:
push:
branches:
Expand Down Expand Up @@ -31,12 +31,6 @@ jobs:
sudo service redis-server start
sudo service redis-server status

- name: Install Flake8 and Run Linter
run: |
pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/django_linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Django Linter
# Triggers when making a pull request to main and commits to main
on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend # Set the default working directory

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10.12

- name: Install Flake8 and Run Linter
run: |
pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
25 changes: 25 additions & 0 deletions backend/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[run]
source =
apps/users
apps/lessons
apps/submissions
apps/uploads
apps/chat
apps/notifications
apps/pomodoro
apps/bookings
apps/planner
apps/search

omit =
*/tests/*
*/migrations/*
*/__init__.py
*/settings.py
*/wsgi.py
*/asgi.py
*/manage.py

[report]
show_missing = True
skip_covered = True