Skip to content

Commit e4b7417

Browse files
committed
workflows: Add Pylint static analysis
Rename shellcheck workflow to static-checks. Signed-off-by: Loïc Minier <[email protected]>
1 parent e626ad2 commit e4b7417

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/shellcheck.yml renamed to .github/workflows/static-checks.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Static analysis of shell scripts with ShellCheck
1+
name: Static analysis of scripts
22

33
on:
44
# run on pull requests to the main branch
@@ -19,6 +19,20 @@ concurrency:
1919
cancel-in-progress: true
2020

2121
jobs:
22+
pylint:
23+
name: Install and run Pylint on Python scripts
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Install Pylint
27+
run: sudo apt update && sudo apt -y install pylint
28+
29+
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
33+
- name: Run Pylint (error mode)
34+
run: pylint --errors-only scripts/*.py
35+
2236
shellcheck:
2337
name: Install and run ShellCheck on shell scripts
2438
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)