-
Notifications
You must be signed in to change notification settings - Fork 39
381 lines (369 loc) · 16.7 KB
/
.static-type-check.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
---
name: . Static Type Check
'on':
workflow_call:
jobs:
detect-changes:
name: Detect Changes
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
permissions:
pull-requests: read
outputs:
# Languages
python: ${{ steps.filter.outputs.python }}
# Applications
api-go: ${{ steps.filter.outputs.api-go }}
api-node: ${{ steps.filter.outputs.api-node }}
ethereum: ${{ steps.filter.outputs.ethereum }}
grafana-hm-panel-plugin: ${{ steps.filter.outputs.grafana-hm-panel-plugin }}
mobile-android: ${{ steps.filter.outputs.mobile-android }}
mobile-react-native: ${{ steps.filter.outputs.mobile-react-native }}
terraform: ${{ steps.filter.outputs.terraform }}
web: ${{ steps.filter.outputs.web }}
web-cypress: ${{ steps.filter.outputs.web-cypress }}
steps:
- name: Checkout
uses: actions/[email protected]
- uses: dorny/[email protected]
id: filter
with:
filters: |
# Languages
python:
- '.github/workflows/.static-type-check.yml'
- 'pyproject.toml'
- 'uv.lock'
- '.mypy.ini'
- '**/*.py'
# Applications
api-node:
- '.github/workflows/.static-type-check.yml'
- 'api-node/**'
ethereum:
- '.github/workflows/.static-type-check.yml'
- 'ethereum/**'
grafana-hm-panel-plugin:
- '.github/workflows/.static-type-check.yml'
- 'data-visualization/grafana/hm-panel-plugin/**'
mobile-android:
- '.github/workflows/.static-type-check.yml'
- 'mobile/mobile-android/**'
mobile-react-native:
- '.github/workflows/.static-type-check.yml'
- 'mobile/mobile-react-native/**'
terraform:
- '.github/workflows/.static-type-check.yml'
- 'cloud-infrastructure/terraform/**'
web:
- '.github/workflows/.static-type-check.yml'
- 'web/**'
web-cypress:
- '.github/workflows/.static-type-check.yml'
- 'web-cypress/**'
static-type-check-kotlin-mobile-android:
name: Kotlin (mobile-android)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.mobile-android == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Java
uses: actions/[email protected]
with:
distribution: corretto
java-version: '17'
cache: gradle
- name: Static type check Kotlin
working-directory: mobile/mobile-android
run: |
./gradlew detekt
static-type-check-python:
name: Python
needs: detect-changes
if: ${{ needs.detect-changes.outputs.python == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/[email protected]
with:
version: 0.5.2
enable-cache: true
cache-dependency-glob: uv.lock
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: pyproject.toml
- name: Install dependencies
run: |
uv sync --dev
- name: Static type check Python
run: |
uv run poe static-type-check-python --package=aerospace.hm-aerosandbox
uv run poe static-type-check-python --package=aerospace.hm-openaerostruct
uv run poe static-type-check-python --package=api-python
uv run poe static-type-check-python --package=authorization.hm-opal-client
uv run poe static-type-check-python --package=cloud-computing.hm-ray.applications.calculate
uv run poe static-type-check-python --package=cloud-computing.hm-ray.applications.process-flight-data
uv run poe static-type-check-python --package=cloud-platform.aws.amazon-sagemaker.pytorch-mnist
uv run poe static-type-check-python --package=cloud-platform.aws.aws-parallelcluster.pcluster
uv run poe static-type-check-python --package=computer-vision.hm-imagebind
uv run poe static-type-check-python --package=computer-vision.hm-open3d
uv run poe static-type-check-python --package=computer-vision.hm-pyvista.mount-saint-helens
uv run poe static-type-check-python --package=computer-vision.hm-supervision.detect-objects
uv run poe static-type-check-python --package=computer-vision.open-clip
uv run poe static-type-check-python --package=data-analytics.hm-cudf
uv run poe static-type-check-python --package=data-analytics.hm-cupy
uv run poe static-type-check-python --package=data-analytics.hm-geopandas
uv run poe static-type-check-python --package=data-analytics.hm-numba
uv run poe static-type-check-python --package=data-analytics.hm-pandas
uv run poe static-type-check-python --package=data-analytics.hm-polars
uv run poe static-type-check-python --package=data-distribution-service
uv run poe static-type-check-python --package=data-orchestration.hm-airflow
uv run poe static-type-check-python --package=data-orchestration.hm-prefect.workflows.calculate
uv run poe static-type-check-python --package=data-orchestration.hm-prefect.workflows.greet
uv run poe static-type-check-python --package=data-orchestration.hm-prefect.workflows.print-platform
uv run poe static-type-check-python --package=data-processing.hm-spark.applications.analyze-coffee-customers
uv run poe static-type-check-python --package=data-processing.hm-spark.applications.find-retired-people-python
uv run poe static-type-check-python --package=data-processing.hm-spark.applications.find-taxi-top-routes
uv run poe static-type-check-python --package=data-processing.hm-spark.applications.find-taxi-top-routes-sql
uv run poe static-type-check-python --package=data-processing.hm-spark.applications.recommend-movies
uv run poe static-type-check-python --package=data-storage.delta-lake.read-delta-lake-by-amazon-athena
uv run poe static-type-check-python --package=data-storage.delta-lake.read-delta-lake-by-trino
uv run poe static-type-check-python --package=data-storage.delta-lake.write-to-delta-lake
uv run poe static-type-check-python --package=data-storage.hm-duckdb.query-duckdb
uv run poe static-type-check-python --package=data-storage.hm-duckdb.query-lance
uv run poe static-type-check-python --package=data-storage.hm-duckdb.query-parquet
uv run poe static-type-check-python --package=data-storage.hm-duckdb.query-protobuf
uv run poe static-type-check-python --package=data-storage.hm-lancedb
uv run poe static-type-check-python --package=data-storage.hm-protobuf
uv run poe static-type-check-python --package=data-storage.lance
uv run poe static-type-check-python --package=data-visualization.grafana.hm-dashboard
uv run poe static-type-check-python --package=data-visualization.iads.iads-data-manager.iads-config-reader
uv run poe static-type-check-python --package=data-visualization.iads.iads-data-manager.iads-data-reader
uv run poe static-type-check-python --package=embedded-systems.decode-can-data
uv run poe static-type-check-python --package=embedded-systems.format-can-data
uv run poe static-type-check-python --package=embedded-systems.hm-serial
uv run poe static-type-check-python --package=hardware-in-the-loop.national-instruments.hm-pyvisa
uv run poe static-type-check-python --package=hardware-in-the-loop.national-instruments.hm-tdms
uv run poe static-type-check-python --package=hardware-in-the-loop.national-instruments.veristand.hm-veristand
uv run poe static-type-check-python --package=hm-locust
uv run poe static-type-check-python --package=hm-xxhash
uv run poe static-type-check-python --package=machine-learning.convolutional-neural-network
uv run poe static-type-check-python --package=machine-learning.dali
uv run poe static-type-check-python --package=machine-learning.feature-store
uv run poe static-type-check-python --package=machine-learning.graph-neural-network
uv run poe static-type-check-python --package=machine-learning.hm-docling
uv run poe static-type-check-python --package=machine-learning.hm-faster-whisper
uv run poe static-type-check-python --package=machine-learning.hm-gradio.applications.classify-image
uv run poe static-type-check-python --package=machine-learning.hm-kubeflow.pipelines.calculate
uv run poe static-type-check-python --package=machine-learning.hm-kubeflow.pipelines.classify-mnist
uv run poe static-type-check-python --package=machine-learning.hm-langchain.applications.chat-pdf
uv run poe static-type-check-python --package=machine-learning.hm-langgraph.applications.chat-pdf
uv run poe static-type-check-python --package=machine-learning.hm-mlflow.experiments.classify-mnist
uv run poe static-type-check-python --package=machine-learning.hm-mlflow.experiments.predict-diabetes
uv run poe static-type-check-python --package=machine-learning.hm-rasa
uv run poe static-type-check-python --package=machine-learning.hm-sglang
uv run poe static-type-check-python --package=machine-learning.hm-streamlit.applications.live-line-chart
uv run poe static-type-check-python --package=machine-learning.hm-streamlit.applications.map
uv run poe static-type-check-python --package=machine-learning.hugging-face
uv run poe static-type-check-python --package=machine-learning.mineru
uv run poe static-type-check-python --package=machine-learning.neural-forecasting.forecast-air-passenger-number
uv run poe static-type-check-python --package=machine-learning.reinforcement-learning.cart-pole
uv run poe static-type-check-python --package=machine-learning.stable-diffusion
uv run poe static-type-check-python --package=machine-learning.triton-inference-server.amazon-sagemaker-triton-resnet-50.deploy
uv run poe static-type-check-python --package=machine-learning.triton-inference-server.amazon-sagemaker-triton-resnet-50.infer
uv run poe static-type-check-python --package=parallel-computing.hm-triton
uv run poe static-type-check-python --package=quantum-computing
static-type-check-terraform-production-aws:
name: Terraform (production/aws)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.terraform == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
- name: Initialize Terraform
working-directory: cloud-infrastructure/terraform/environments/production/aws
run: |
terraform init -backend=false
- name: Static type check Terraform
working-directory: cloud-infrastructure/terraform/environments/production/aws
run: |
terraform validate
static-type-check-terraform-production-snowflake:
name: Terraform (production/snowflake)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.terraform == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
- name: Initialize Terraform
working-directory: cloud-infrastructure/terraform/environments/production/snowflake
run: |
terraform init -backend=false
- name: Static type check Terraform
working-directory: cloud-infrastructure/terraform/environments/production/snowflake
run: |
terraform validate
static-type-check-typescript-api-node:
name: TypeScript (api-node)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.api-node == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version-file: api-node/.node-version
cache: npm
cache-dependency-path: api-node/package-lock.json
- name: Install dependencies
working-directory: api-node
run: |
npm ci
- name: Static type check TypeScript
working-directory: api-node
run: |
npm run tsc
static-type-check-typescript-ethereum:
name: TypeScript (ethereum)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.ethereum == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version-file: ethereum/.node-version
cache: npm
cache-dependency-path: ethereum/package-lock.json
- name: Install dependencies
working-directory: ethereum
run: |
npm ci
- name: Static type check TypeScript
working-directory: ethereum
run: |
npm run tsc
static-type-check-typescript-grafana-hm-panel-plugin:
name: TypeScript (grafana-hm-panel-plugin)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.grafana-hm-panel-plugin == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version-file: data-visualization/grafana/hm-panel-plugin/.node-version
cache: npm
cache-dependency-path: data-visualization/grafana/hm-panel-plugin/package-lock.json
- name: Install dependencies
working-directory: data-visualization/grafana/hm-panel-plugin
run: |
npm ci
- name: Static type check TypeScript
working-directory: data-visualization/grafana/hm-panel-plugin
run: |
npm run tsc
static-type-check-typescript-mobile-react-native:
name: TypeScript (mobile-react-native)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.mobile-react-native == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version-file: mobile/mobile-react-native/.node-version
cache: npm
cache-dependency-path: mobile/mobile-react-native/package-lock.json
- name: Install dependencies
working-directory: mobile/mobile-react-native
run: |
npm ci
- name: Static type check TypeScript
working-directory: mobile/mobile-react-native
run: |
npm run tsc
static-type-check-typescript-web:
name: TypeScript (web)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.web == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version-file: web/.node-version
cache: npm
cache-dependency-path: web/package-lock.json
- name: Install dependencies
working-directory: web
run: |
npm ci
- name: Static type check TypeScript
working-directory: web
run: |
npm run tsc
static-type-check-typescript-web-cypress:
name: TypeScript (web-cypress)
needs: detect-changes
if: ${{ needs.detect-changes.outputs.web-cypress == 'true' }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/[email protected]
with:
node-version-file: web-cypress/.node-version
cache: npm
cache-dependency-path: web-cypress/package-lock.json
- name: Install dependencies
working-directory: web-cypress
run: |
npm ci
- name: Static type check TypeScript
working-directory: web-cypress
run: |
npm run tsc