Skip to content

Commit 68a961c

Browse files
authored
add pylint to python-test.yml
1 parent 01f0a95 commit 68a961c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/python-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33

4-
name: Python application
4+
name: Python linting & testing
55

66
on: [push]
77

@@ -15,15 +15,18 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18-
- name: Set up Python 3.10
18+
- name: Set up Python 3.13
1919
uses: actions/setup-python@v3
2020
with:
21-
python-version: "3.10"
21+
python-version: "3.13"
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
pip install flake8
25+
pip install flake8 pylint
2626
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+
- name: Analyse the code with pylint
28+
run: |
29+
pylint $(git ls-files '*.py')
2730
- name: Lint with flake8
2831
run: |
2932
# stop the build if there are Python syntax errors or undefined names

0 commit comments

Comments
 (0)