File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 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
66on : [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
You can’t perform that action at this time.
0 commit comments