Skip to content

Commit

Permalink
Add pylint to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankpatibandla committed Oct 25, 2023
1 parent 5ee1865 commit a943805
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ on:
pull_request:

jobs:
pylint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py') --rcfile=$(git ls-files '.pylintrc')
update_build_number:
runs-on: ubuntu-latest
outputs:
Expand Down

0 comments on commit a943805

Please sign in to comment.