Skip to content

Commit d2f59cf

Browse files
authored
Create pylint.yml
1 parent 65e8b46 commit d2f59cf

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pylint.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Pylint
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
python-version: [3.8, 3.9, 3.10]
16+
17+
steps:
18+
- name: 📥 Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: 🐍 Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
26+
- name: 📦 Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install pylint
30+
31+
- name: 🧪 Run pylint
32+
run: |
33+
pylint $(git ls-files '*.py') || true # prevent CI failure on warnings

0 commit comments

Comments
 (0)