Skip to content

Commit

Permalink
added pylinter to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ayd2134 committed Apr 22, 2024
1 parent 851dcba commit 8e66ea1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pylinter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Pytest on Backend

on:
push:
paths:
- "backend/**"
pull_request:
paths:
- "backend/**"

jobs:
pylint-backend:
runs-on: ubuntu-latest

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

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Lint with Pylint
run: pylint backend/app.py

0 comments on commit 8e66ea1

Please sign in to comment.