Skip to content

Commit

Permalink
Update pylint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bgorlick authored Jun 6, 2024
1 parent 8ea497f commit ad30ad3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Pylint

on: [push]
on: [push, pull_request]

jobs:
build:
Expand All @@ -12,13 +12,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
- name: Run Pylint
run: |
pylint $(git ls-files '*.py')
pylint getai/*.py
- name: Report pylint errors
if: failure()
run: |
echo "Pylint found issues in the code. Please review the errors above."

0 comments on commit ad30ad3

Please sign in to comment.