-
Notifications
You must be signed in to change notification settings - Fork 0
398 lines (339 loc) · 14 KB
/
validate.yaml
File metadata and controls
398 lines (339 loc) · 14 KB
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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
#
# This file is the result of a code generation process; any changes made
# to this file will be overwritten during the next code generation
# invocation. Any changes MUST be made in the source file rather than in
# this one.
#
# Code Generator: Jinja2
# Input Filename: workflows/validate.jinja2.yaml
#
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# |
# | validate.yaml
# |
# | David Brownell <db@DavidBrownell.com>
# | 2022-12-08 12:18:53
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2022-23
# | Distributed under the Boost Software License, Version 1.0. See
# | accompanying file LICENSE_1_0.txt or copy at
# | http://www.boost.org/LICENSE_1_0.txt.
# |
# ----------------------------------------------------------------------
name: "[callable] Validates Common_SimpleSchema"
on:
workflow_call:
inputs:
repo_branch: {type: string, required: true}
force_setup: {type: boolean, required: false, default: false}
force_activate: {type: boolean, required: false, default: false}
no_cache: {type: boolean, required: false, default: false}
bootstrap_branch_overrides: {type: string, required: false}
jobs:
# ----------------------------------------------------------------------
_2138a5e2-b9e6-45c7-8220-4138c4880ff8:
name: "Build and Test: standard"
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
uses: davidbrownell/v4-Common_Foundation/.github/workflows/callable_validate.yaml@CI-v1
with:
job_name_prefix: "Common_SimpleSchema"
repo_name: davidbrownell/v4-Common_SimpleSchema
repo_branch: ${{ inputs.repo_branch }}
bootstrap_branch_overrides: ${{ inputs.bootstrap_branch_overrides }}
os: ${{ matrix.os }}
configuration: standard
run_Builder: true
run_MatchTests: true
force_setup: ${{ inputs.force_setup }}
force_activate: ${{ inputs.force_activate }}
no_cache: ${{ inputs.no_cache }}
# Use the following values to control how different test types are run:
#
# 0: Do not run these test types
# 1: Run these test types without code coverage
# 2: Run these test types with code coverage
# 3: Run these test types with and without code coverage
execute_UnitTests: 3
execute_FunctionalTests: 1
execute_IntegrationTests: 1
execute_SystemTests: 1
execute_LocalEndToEndTests: 1
execute_EndToEndTests: 0
execute_BuildVerificationTests: 1
execute_PerformanceTests: 0
# Note that we aren't using a matrix for the os here as we want to increase overall throughput
# (rather than forcing the binary validation job to wait until all of the dev jobs are complete).
# ----------------------------------------------------------------------
# |
# | macos-latest
# |
# ----------------------------------------------------------------------
_61804fa1-d9d9-47bc-890f-838f95197a1d:
name: "Build and Test: dev"
uses: davidbrownell/v4-Common_PythonDevelopment/.github/workflows/callable_validate.yaml@CI-v1
with:
job_name_prefix: "Common_SimpleSchema"
repo_name: davidbrownell/v4-Common_SimpleSchema
repo_branch: ${{ inputs.repo_branch }}
bootstrap_branch_overrides: ${{ inputs.bootstrap_branch_overrides }}
os: macos-latest
configuration: dev
run_PylintVerifier: true
run_Builder: true
run_MatchTests: true
force_setup: ${{ inputs.force_setup }}
force_activate: ${{ inputs.force_activate }}
no_cache: ${{ inputs.no_cache }}
# Use the following values to control how different test types are run:
#
# 0: Do not run these test types
# 1: Run these test types without code coverage
# 2: Run these test types with code coverage
# 3: Run these test types with and without code coverage
execute_UnitTests: 3
execute_FunctionalTests: 1
execute_IntegrationTests: 1
execute_SystemTests: 1
execute_LocalEndToEndTests: 1
execute_EndToEndTests: 1
execute_BuildVerificationTests: 1
execute_PerformanceTests: 0
# ----------------------------------------------------------------------
_8e299ffe-70f8-487b-abea-831c1df63323:
name: "Common_SimpleSchema (macos-latest, dev binaries)"
runs-on: macos-latest
needs:
- _61804fa1-d9d9-47bc-890f-838f95197a1d
steps:
- name: "[Impl] Dump Contexts"
if: ${{ startsWith('macos-latest', 'ubuntu') }}
uses: davidbrownell/v4-Common_Foundation/.github/actions/dump_contexts@CI-v1
# outputs:
# - github_workspace
# - local_script_prefix
# - script_extension
# - shell_name
# - source_command
# - sudo_command
#
- name: "[Impl] Initialize OS-Specific Variables"
id: initialize
uses: davidbrownell/v4-Common_Foundation/.github/actions/initialize@CI-v1
with:
os: macos-latest
# outputs:
# - archive_prefix
# - repo_dir
# - repo_dependencies_dir
#
- name: Checkout Source
id: checkout_source
uses: davidbrownell/v4-Common_Foundation/.github/actions/checkout_source@CI-v1
with:
repo_name: davidbrownell/v4-Common_SimpleSchema
repo_branch: ${{ inputs.repo_branch }}
os: macos-latest
configuration: dev
shell_name: ${{ steps.initialize.outputs.shell_name }}
# outputs:
# - artifacts_dir
#
- name: Unbundle Build Artifacts
id: unbundle
uses: davidbrownell/v4-Common_Foundation/.github/actions/unbundle_builder_artifacts@CI-v1
with:
archive_prefix: ${{ steps.checkout_source.outputs.archive_prefix }}
artifacts_path: src/SimpleSchema/Build
os: macos-latest
shell_name: ${{ steps.initialize.outputs.shell_name }}
working_dir: ${{ steps.initialize.outputs.github_workspace }}/artifacts
- name: Run Test
run: |
python3 "${{ steps.checkout_source.outputs.repo_dir }}/src/SimpleSchema/src/SimpleSchema/TestFiles/Binary_BuildVerificationTest.py" "${{ steps.unbundle.outputs.artifacts_dir }}"
# ----------------------------------------------------------------------
# |
# | ubuntu-latest
# |
# ----------------------------------------------------------------------
_7a76a3ae-1aab-4649-ba80-00b7f6b4f5cf:
name: "Build and Test: dev"
uses: davidbrownell/v4-Common_PythonDevelopment/.github/workflows/callable_validate.yaml@CI-v1
with:
job_name_prefix: "Common_SimpleSchema"
repo_name: davidbrownell/v4-Common_SimpleSchema
repo_branch: ${{ inputs.repo_branch }}
bootstrap_branch_overrides: ${{ inputs.bootstrap_branch_overrides }}
os: ubuntu-latest
configuration: dev
run_PylintVerifier: true
run_Builder: true
run_MatchTests: true
force_setup: ${{ inputs.force_setup }}
force_activate: ${{ inputs.force_activate }}
no_cache: ${{ inputs.no_cache }}
# Use the following values to control how different test types are run:
#
# 0: Do not run these test types
# 1: Run these test types without code coverage
# 2: Run these test types with code coverage
# 3: Run these test types with and without code coverage
execute_UnitTests: 3
execute_FunctionalTests: 1
execute_IntegrationTests: 1
execute_SystemTests: 1
execute_LocalEndToEndTests: 1
execute_EndToEndTests: 1
execute_BuildVerificationTests: 1
execute_PerformanceTests: 0
# ----------------------------------------------------------------------
_d466fdd6-88d0-4b5c-b108-d310d471a2d0:
name: "Common_SimpleSchema (ubuntu-latest, dev binaries)"
runs-on: ubuntu-latest
needs:
- _7a76a3ae-1aab-4649-ba80-00b7f6b4f5cf
steps:
- name: "[Impl] Dump Contexts"
if: ${{ startsWith('ubuntu-latest', 'ubuntu') }}
uses: davidbrownell/v4-Common_Foundation/.github/actions/dump_contexts@CI-v1
# outputs:
# - github_workspace
# - local_script_prefix
# - script_extension
# - shell_name
# - source_command
# - sudo_command
#
- name: "[Impl] Initialize OS-Specific Variables"
id: initialize
uses: davidbrownell/v4-Common_Foundation/.github/actions/initialize@CI-v1
with:
os: ubuntu-latest
# outputs:
# - archive_prefix
# - repo_dir
# - repo_dependencies_dir
#
- name: Checkout Source
id: checkout_source
uses: davidbrownell/v4-Common_Foundation/.github/actions/checkout_source@CI-v1
with:
repo_name: davidbrownell/v4-Common_SimpleSchema
repo_branch: ${{ inputs.repo_branch }}
os: ubuntu-latest
configuration: dev
shell_name: ${{ steps.initialize.outputs.shell_name }}
# outputs:
# - artifacts_dir
#
- name: Unbundle Build Artifacts
id: unbundle
uses: davidbrownell/v4-Common_Foundation/.github/actions/unbundle_builder_artifacts@CI-v1
with:
archive_prefix: ${{ steps.checkout_source.outputs.archive_prefix }}
artifacts_path: src/SimpleSchema/Build
os: ubuntu-latest
shell_name: ${{ steps.initialize.outputs.shell_name }}
working_dir: ${{ steps.initialize.outputs.github_workspace }}/artifacts
- name: Run Test
run: |
python3 "${{ steps.checkout_source.outputs.repo_dir }}/src/SimpleSchema/src/SimpleSchema/TestFiles/Binary_BuildVerificationTest.py" "${{ steps.unbundle.outputs.artifacts_dir }}"
# ----------------------------------------------------------------------
# |
# | windows-latest
# |
# ----------------------------------------------------------------------
_bbf0a875-46b3-463a-b037-5ac1f70bfdd7:
name: "Build and Test: dev"
uses: davidbrownell/v4-Common_PythonDevelopment/.github/workflows/callable_validate.yaml@CI-v1
with:
job_name_prefix: "Common_SimpleSchema"
repo_name: davidbrownell/v4-Common_SimpleSchema
repo_branch: ${{ inputs.repo_branch }}
bootstrap_branch_overrides: ${{ inputs.bootstrap_branch_overrides }}
os: windows-latest
configuration: dev
run_PylintVerifier: true
run_Builder: true
run_MatchTests: true
force_setup: ${{ inputs.force_setup }}
force_activate: ${{ inputs.force_activate }}
no_cache: ${{ inputs.no_cache }}
# Use the following values to control how different test types are run:
#
# 0: Do not run these test types
# 1: Run these test types without code coverage
# 2: Run these test types with code coverage
# 3: Run these test types with and without code coverage
execute_UnitTests: 3
execute_FunctionalTests: 1
execute_IntegrationTests: 1
execute_SystemTests: 1
execute_LocalEndToEndTests: 1
execute_EndToEndTests: 1
execute_BuildVerificationTests: 1
execute_PerformanceTests: 0
# ----------------------------------------------------------------------
_dd98a57e-ea99-4b01-bae5-6c637e70402d:
name: "Common_SimpleSchema (windows-latest, dev binaries)"
runs-on: windows-latest
needs:
- _bbf0a875-46b3-463a-b037-5ac1f70bfdd7
steps:
- name: "[Impl] Dump Contexts"
if: ${{ startsWith('windows-latest', 'ubuntu') }}
uses: davidbrownell/v4-Common_Foundation/.github/actions/dump_contexts@CI-v1
# outputs:
# - github_workspace
# - local_script_prefix
# - script_extension
# - shell_name
# - source_command
# - sudo_command
#
- name: "[Impl] Initialize OS-Specific Variables"
id: initialize
uses: davidbrownell/v4-Common_Foundation/.github/actions/initialize@CI-v1
with:
os: windows-latest
# outputs:
# - archive_prefix
# - repo_dir
# - repo_dependencies_dir
#
- name: Checkout Source
id: checkout_source
uses: davidbrownell/v4-Common_Foundation/.github/actions/checkout_source@CI-v1
with:
repo_name: davidbrownell/v4-Common_SimpleSchema
repo_branch: ${{ inputs.repo_branch }}
os: windows-latest
configuration: dev
shell_name: ${{ steps.initialize.outputs.shell_name }}
# outputs:
# - artifacts_dir
#
- name: Unbundle Build Artifacts
id: unbundle
uses: davidbrownell/v4-Common_Foundation/.github/actions/unbundle_builder_artifacts@CI-v1
with:
archive_prefix: ${{ steps.checkout_source.outputs.archive_prefix }}
artifacts_path: src/SimpleSchema/Build
os: windows-latest
shell_name: ${{ steps.initialize.outputs.shell_name }}
working_dir: ${{ steps.initialize.outputs.github_workspace }}/artifacts
- name: Run Test
run: |
python3 "${{ steps.checkout_source.outputs.repo_dir }}/src/SimpleSchema/src/SimpleSchema/TestFiles/Binary_BuildVerificationTest.py" "${{ steps.unbundle.outputs.artifacts_dir }}"