Skip to content

Commit

Permalink
upgrading the way pylinting is done
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Jul 11, 2023
1 parent 7e0fad4 commit 622f92b
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,38 @@

name: PyLint the codebase

# trigger event is a push to the main repo branch (or a manual launch)
on:
workflow_dispatch:
push:
branches:
- master
- main

# job definitions
jobs:
run_pylint:
runs-on: ubuntu-latest
name: Execute pylint

runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.11"]

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

- name: Python Pylint GitHub Action
uses: fylein/python-pylint-github-action@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
args: pip3 install -r requirements.txt && pylint --rcfile=.pylintrc --recursive=y ./
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Pylint the codebase
run: |
pylint --rcfile=.pylintrc --recursive=y ./

0 comments on commit 622f92b

Please sign in to comment.