@@ -11,10 +11,10 @@ jobs:
1111
1212 steps :
1313 - name : Check out repository
14- uses : actions/checkout@v4
14+ uses : actions/checkout@v6
1515
1616 - name : Set up Python
17- uses : actions/setup-python@v5
17+ uses : actions/setup-python@v6
1818 with :
1919 python-version : 3.13
2020 cache : pip
@@ -60,72 +60,14 @@ jobs:
6060 flake8 packages --count --select=E9,F63,F7,F82 --show-source --statistics
6161 flake8 packages --count --max-complexity=12 --max-line-length=130 --statistics
6262
63- # Typing checks with MyPy
64- typing :
65- name : Typing
66- runs-on : ubuntu-latest
67-
68- steps :
69- - name : Check out repository
70- uses : actions/checkout@v4
71-
72- - name : Set up Python
73- uses : actions/setup-python@v5
74- with :
75- python-version : 3.13
76- cache : pip
77- cache-dependency-path : |
78- **/pyproject.toml
79- **/requirements*.txt
80-
81- - name : Create build info
82- run : |
83- bash scripts/build-info.sh
84-
85- - name : Install MyPy (1.16.1)
86- run : |
87- python -m pip install --upgrade pip
88- pip install mypy==1.16.1
89-
90- - name : Install dependencies
91- run : |
92- ROOT=$(pwd)
93- for package in $(ls packages); do
94- echo "-------------------------------------------------"
95- echo "- $package"
96- echo "-------------------------------------------------"
97- cd "$ROOT/packages/$package"
98- pip install -r requirements.txt
99- make local-deps
100- echo "================================================="
101- done
102-
103- - name : Install packages
104- run : |
105- for package in $(ls packages); do
106- echo "-------------------------------------------------"
107- echo "- $package"
108- echo "-------------------------------------------------"
109- pip install packages/$package
110- rm -rf packages/$package/build
111- echo "================================================="
112- done
113-
114- - name : Check typing with MyPy
115- run : |
116- mypy --install-types \
117- --check-untyped-defs \
118- --non-interactive \
119- packages/*/dsw
120-
12163 # Consistency of version tagging
12264 version :
12365 name : Version consts.py
12466 runs-on : ubuntu-latest
12567
12668 steps :
12769 - name : Check out repository
128- uses : actions/checkout@v4
70+ uses : actions/checkout@v6
12971
13072 - name : Check dsw-data-seeder
13173 run : |
@@ -150,18 +92,18 @@ jobs:
15092 bash scripts/check-version.sh \
15193 packages/dsw-tdk/dsw/tdk/consts.py \
15294 packages/dsw-tdk/pyproject.toml
153-
95+
15496 # Pylint
15597 pylint :
15698 name : Pylint
15799 runs-on : ubuntu-latest
158100
159101 steps :
160102 - name : Check out repository
161- uses : actions/checkout@v4
103+ uses : actions/checkout@v6
162104
163105 - name : Set up Python
164- uses : actions/setup-python@v5
106+ uses : actions/setup-python@v6
165107 with :
166108 python-version : 3.13
167109 cache : pip
@@ -213,17 +155,16 @@ jobs:
213155
214156 steps :
215157 - name : Check out repository
216- uses : actions/checkout@v4
158+ uses : actions/checkout@v6
217159
218160 - name : Set up Node.js
219- uses : actions/setup-node@v4
161+ uses : actions/setup-node@v6
220162 with :
221- node-version : ' 22 '
163+ node-version : ' 24 '
222164
223165 - name : Install CSpell
224166 run : |
225- npm install -g cspell
226- npm install -g @cspell/dict-python
167+ npm install -g cspell @cspell/dict-python
227168
228169 - name : Run CSpell
229170 run : |
@@ -237,3 +178,49 @@ jobs:
237178 packages/**/*.toml \
238179 packages/**/*.yml \
239180 packages/**/*.yaml
181+
182+ # Ruff
183+ ruff :
184+ name : Ruff
185+ runs-on : ubuntu-latest
186+
187+ steps :
188+ - name : Check out repository
189+ uses : actions/checkout@v6
190+
191+ - name : Install uv
192+ uses : astral-sh/setup-uv@v7
193+
194+ - name : Create build info
195+ run : |
196+ bash scripts/build-info.sh
197+
198+ - name : Install the project
199+ run : uv sync --locked --all-extras --all-packages --no-install-project --dev
200+
201+ - name : Run Ruff
202+ run : |
203+ uv run ruff check
204+
205+ # Ty
206+ ty :
207+ name : Ty
208+ runs-on : ubuntu-latest
209+
210+ steps :
211+ - name : Check out repository
212+ uses : actions/checkout@v6
213+
214+ - name : Install uv
215+ uses : astral-sh/setup-uv@v7
216+
217+ - name : Create build info
218+ run : |
219+ bash scripts/build-info.sh
220+
221+ - name : Install the project
222+ run : uv sync --locked --all-extras --all-packages --no-install-project --dev
223+
224+ - name : Run Ruff
225+ run : |
226+ uv run ty check
0 commit comments