14
14
run :
15
15
working-directory : ./etc/scripts
16
16
steps :
17
- - uses : actions/checkout@v2
17
+ - uses : actions/checkout@v4
18
18
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
19
- uses : actions/setup-python@v2
19
+ uses : actions/setup-python@v5
20
20
with :
21
21
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
22
22
- name : Install Python dependencies
@@ -29,12 +29,14 @@ jobs:
29
29
${{ env.X_PYTHON_MIN_VERSION }} \
30
30
${{ env.X_PYTHON_MAX_VERSION }}
31
31
32
- - name : Check Python Versions coincide with the SDKs pyproject.toml
32
+ - name : Check Python Versions coincide with all pyproject.toml Files
33
33
run : |
34
- python check_python_versions_coincide.py \
35
- ../../sdk/pyproject.toml \
36
- ${{ env.X_PYTHON_MIN_VERSION }} \
37
- ${{ env.X_PYTHON_MAX_VERSION }}
34
+ for file in ../../sdk/pyproject.toml ../../compliance_tool/pyproject.toml; do
35
+ python check_python_versions_coincide.py \
36
+ $file \
37
+ ${{ env.X_PYTHON_MIN_VERSION }} \
38
+ ${{ env.X_PYTHON_MAX_VERSION }}
39
+ done
38
40
39
41
# Todo: Check other pyproject.toml here as well, as we add them
40
42
72
74
exit 1
73
75
fi
74
76
- name : Set up Python ${{ matrix.python-version }}
75
- uses : actions/setup-python@v4
77
+ uses : actions/setup-python@v5
76
78
with :
77
79
python-version : ${{ matrix.python-version }}
78
80
- name : Collect schema files from aas-specs
@@ -104,7 +106,7 @@ jobs:
104
106
steps :
105
107
- uses : actions/checkout@v4
106
108
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
107
- uses : actions/setup-python@v2
109
+ uses : actions/setup-python@v5
108
110
with :
109
111
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
110
112
- name : Install Python dependencies
@@ -127,7 +129,7 @@ jobs:
127
129
steps :
128
130
- uses : actions/checkout@v4
129
131
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
130
- uses : actions/setup-python@v2
132
+ uses : actions/setup-python@v5
131
133
with :
132
134
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
133
135
- name : Install Python dependencies
@@ -153,7 +155,7 @@ jobs:
153
155
steps :
154
156
- uses : actions/checkout@v4
155
157
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
156
- uses : actions/setup-python@v2
158
+ uses : actions/setup-python@v5
157
159
with :
158
160
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
159
161
- name : Install Python dependencies
@@ -174,7 +176,7 @@ jobs:
174
176
steps :
175
177
- uses : actions/checkout@v4
176
178
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
177
- uses : actions/setup-python@v2
179
+ uses : actions/setup-python@v5
178
180
with :
179
181
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
180
182
- name : Install dependencies
@@ -213,16 +215,17 @@ jobs:
213
215
working-directory : ./compliance_tool
214
216
215
217
steps :
216
- - uses : actions/checkout@v2
218
+ - uses : actions/checkout@v4
217
219
- name : Set up Python ${{ matrix.python-version }}
218
- uses : actions/setup-python@v2
220
+ uses : actions/setup-python@v5
219
221
with :
220
222
python-version : ${{ matrix.python-version }}
221
223
- name : Install Python dependencies
224
+ # install the local sdk in editable mode so it does not get overwritten
222
225
run : |
223
226
python -m pip install --upgrade pip
224
- pip install coverage
225
- pip install -r requirements.txt
227
+ pip install -e ../sdk[dev]
228
+ pip install .[dev]
226
229
- name : Test with coverage + unittest
227
230
run : |
228
231
coverage run --source=aas_compliance_tool -m unittest
@@ -239,16 +242,17 @@ jobs:
239
242
run :
240
243
working-directory : ./compliance_tool
241
244
steps :
242
- - uses : actions/checkout@v2
245
+ - uses : actions/checkout@v4
243
246
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
244
- uses : actions/setup-python@v2
247
+ uses : actions/setup-python@v5
245
248
with :
246
249
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
247
250
- name : Install Python dependencies
251
+ # install the local sdk in editable mode so it does not get overwritten
248
252
run : |
249
253
python -m pip install --upgrade pip
250
- pip install pycodestyle mypy
251
- pip install -r requirements.txt
254
+ pip install -e ../sdk[dev]
255
+ pip install .[dev]
252
256
- name : Check typing with MyPy
253
257
run : |
254
258
mypy ./aas_compliance_tool test
@@ -264,16 +268,17 @@ jobs:
264
268
run :
265
269
working-directory : ./compliance_tool
266
270
steps :
267
- - uses : actions/checkout@v2
271
+ - uses : actions/checkout@v4
268
272
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
269
- uses : actions/setup-python@v2
273
+ uses : actions/setup-python@v5
270
274
with :
271
275
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
272
276
- name : Install Python dependencies
277
+ # install the local sdk in editable mode so it does not get overwritten
273
278
run : |
274
279
python -m pip install --upgrade pip
275
- pip install pycodestyle mypy codeblocks
276
- pip install -r requirements.txt
280
+ pip install -e ../sdk[dev]
281
+ pip install .[dev]
277
282
- name : Check typing with MyPy
278
283
run : |
279
284
mypy <(codeblocks python README.md)
@@ -292,18 +297,18 @@ jobs:
292
297
run :
293
298
working-directory : ./compliance_tool
294
299
steps :
295
- - uses : actions/checkout@v2
300
+ - uses : actions/checkout@v4
296
301
- name : Set up Python ${{ env.X_PYTHON_MIN_VERSION }}
297
- uses : actions/setup-python@v2
302
+ uses : actions/setup-python@v5
298
303
with :
299
304
python-version : ${{ env.X_PYTHON_MIN_VERSION }}
300
305
- name : Install dependencies
301
306
run : |
302
307
python -m pip install --upgrade pip
303
- pip install setuptools wheel
308
+ pip install build
304
309
- name : Create source and wheel dist
305
310
run : |
306
- python setup.py sdist bdist_wheel
311
+ python -m build
307
312
308
313
server-package :
309
314
# This job checks if we can build our server package
0 commit comments