Skip to content

Commit

Permalink
Create code-quality-check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun Lim authored and GitHub Enterprise committed Mar 17, 2025
1 parent a909d06 commit 8b94963
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/code-quality-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Code Quality Check

on:
pull_request:
branches: [ main, dev ]

jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python for Backend
uses: actions/setup-python@v3
with:
python-version: '3.9'

- name: Install Backend Dependencies
run: pip install -r backend/requirements.txt

- name: Run Backend Linting
run: flake8 backend/

- name: Set up Node.js for Frontend
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install Frontend Dependencies
run: npm install --prefix frontend/

- name: Run Frontend Linting
run: npm run lint --prefix frontend/

- name: Run Backend Tests
run: pytest backend/tests/

- name: Run Frontend Tests
run: npm test --prefix frontend/



0 comments on commit 8b94963

Please sign in to comment.