Skip to content

Commit

Permalink
added 'pylint' in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MothScientist committed Apr 6, 2024
1 parent 9044371 commit cd199cd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Pylint

on:
workflow_dispatch:
push:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: ["3.12"]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x32
check-latest: true

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pylint
- name: Lint with pylint
run: |
pylint $(git ls-files '*.py')

0 comments on commit cd199cd

Please sign in to comment.