1616 - name : Set up Python
1717 uses : actions/setup-python@v5
1818 with :
19- python-version : 3.11
19+ python-version : 3.12
2020 cache : pip
2121 cache-dependency-path : |
2222 **/pyproject.toml
@@ -26,10 +26,10 @@ jobs:
2626 run : |
2727 bash scripts/build-info.sh
2828
29- - name : Install Flake8 (5.0.4 )
29+ - name : Install Flake8 (7.1.1 )
3030 run : |
3131 python -m pip install --upgrade pip
32- pip install flake8==5.0.4
32+ pip install flake8==7.1.1
3333
3434 - name : Install dependencies
3535 run : |
5151 echo "- $package"
5252 echo "-------------------------------------------------"
5353 pip install packages/$package
54+ rm -rf packages/$package/build
5455 echo "================================================="
5556 done
5657
7172 - name : Set up Python
7273 uses : actions/setup-python@v5
7374 with :
74- python-version : 3.11
75+ python-version : 3.12
7576 cache : pip
7677 cache-dependency-path : |
7778 **/pyproject.toml
@@ -81,10 +82,10 @@ jobs:
8182 run : |
8283 bash scripts/build-info.sh
8384
84- - name : Install MyPy (1.4.1 )
85+ - name : Install MyPy (1.14.0 )
8586 run : |
8687 python -m pip install --upgrade pip
87- pip install mypy==1.4.1
88+ pip install mypy==1.14.0
8889
8990 - name : Install dependencies
9091 run : |
@@ -106,14 +107,17 @@ jobs:
106107 echo "- $package"
107108 echo "-------------------------------------------------"
108109 pip install packages/$package
110+ rm -rf packages/$package/build
109111 echo "================================================="
110112 done
111113
112114 - name : Check typing with MyPy
113115 run : |
114- mypy --install-types --ignore-missing-imports --check-untyped-defs --non-interactive packages/*/dsw
115-
116+ mypy --install-types --ignore-missing-imports \
117+ --check-untyped-defs --non-interactive \
118+ packages/*/dsw
116119
120+ # Consistency of version tagging
117121 version :
118122 name : Version consts.py
119123 runs-on : ubuntu-latest
@@ -145,3 +149,58 @@ jobs:
145149 bash scripts/check-version.sh \
146150 packages/dsw-tdk/dsw/tdk/consts.py \
147151 packages/dsw-tdk/pyproject.toml
152+
153+ # Pylint
154+ pylint :
155+ name : Pylint
156+ runs-on : ubuntu-latest
157+
158+ steps :
159+ - name : Check out repository
160+ uses : actions/checkout@v4
161+
162+ - name : Set up Python
163+ uses : actions/setup-python@v5
164+ with :
165+ python-version : 3.12
166+ cache : pip
167+ cache-dependency-path : |
168+ **/pyproject.toml
169+ **/requirements*.txt
170+
171+ - name : Create build info
172+ run : |
173+ bash scripts/build-info.sh
174+
175+ - name : Install PyLint (3.3.3)
176+ run : |
177+ python -m pip install --upgrade pip
178+ pip install pylint==3.3.3
179+
180+ - name : Install dependencies
181+ run : |
182+ ROOT=$(pwd)
183+ for package in $(ls packages); do
184+ echo "-------------------------------------------------"
185+ echo "- $package"
186+ echo "-------------------------------------------------"
187+ cd "$ROOT/packages/$package"
188+ pip install -r requirements.txt
189+ make local-deps
190+ echo "================================================="
191+ done
192+
193+ - name : Install packages
194+ run : |
195+ for package in $(ls packages); do
196+ echo "-------------------------------------------------"
197+ echo "- $package"
198+ echo "-------------------------------------------------"
199+ pip install packages/$package
200+ rm -rf packages/$package/build
201+ echo "================================================="
202+ done
203+
204+ - name : Lint with PyLint
205+ run : |
206+ pylint --rcfile=.pylintrc.ini packages/*/dsw
0 commit comments