Skip to content

Commit

Permalink
Merge pull request #5 from software-students-spring2024/workflows
Browse files Browse the repository at this point in the history
added pylinter to workflow
  • Loading branch information
zhaojustin authored Apr 22, 2024
2 parents 851dcba + 8e66ea1 commit 3cc5823
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 3cc5823

Please sign in to comment.