-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 856 Bytes
/
pylint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Pylint
on:
push:
paths:
# Changes to any python file:
- '**.py'
# Or Actions this workflow depends on (including itself):
- '.pylintrc'
- '.github/workflows/pylint.yml'
- '.github/workflows/composite-setup-python/action.yaml'
pull_request:
paths:
# Changes to any python file:
- '**.py'
# Or Actions this workflow depends on (including itself):
- '.pylintrc'
- '.github/workflows/pylint.yml'
- '.github/workflows/composite-setup-python/action.yaml'
jobs:
python-lint:
runs-on: ubuntu-latest
env:
PYTHON_VERSION: 3.12
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: ./.github/workflows/composite-setup-python
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')