Skip to content

Commit

Permalink
add PyLint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Guymer committed Jul 13, 2024
1 parent 88eda52 commit 153c096
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
-
name: Checkout project # https://github.com/actions/checkout
uses: actions/checkout@v4
with:
path: main
-
name: Checkout PyGuymer3 # https://github.com/actions/checkout
uses: actions/checkout@v4
with:
path: pyguymer3
repository: Guymer/PyGuymer3
-
name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5 # https://github.com/actions/setup-python
with:
python-version: ${{ matrix.python-version }}
-
name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
-
name: Analysing the Python code with PyLint
run: |
export PYTHONPATH=${PWD}/pyguymer3:${PYTHONPATH}
cd main
pylint --rcfile=".pylintrc" --disable=C0301,R0801 $(git ls-files "*.py")

0 comments on commit 153c096

Please sign in to comment.