Skip to content

Commit 7e411e1

Browse files
committed
Added pylint
1 parent 47fecfe commit 7e411e1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/M1-4-2-CI-Practice.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Flask App GitHub Actions Pipeline
2-
run-name: ${{ github.actor }} workflow that triggers on push to a feature branch and perform check on a Flask app repo
2+
run-name: Flask App GitHub Actions Pipeline
33

44
on:
55
push:
@@ -28,3 +28,18 @@ jobs:
2828
- uses: actions/checkout@v4
2929
- uses: editorconfig-checker/action-editorconfig-checker@main
3030
- run: editorconfig-checker
31+
32+
python-pylint:
33+
name: Executes pylint
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v1
38+
39+
- name: Lint
40+
uses: gabriel-milan/action-pylint@v1
41+
with:
42+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} # GitHub token
43+
path: "./*.py" # Glob pattern for files to lint
44+
fail: true # Fail the action if pylint errors are found
45+
pr-message: true # Send a PR message if pylint errors are found

0 commit comments

Comments
 (0)