93
93
required : false
94
94
default : ' '
95
95
type : string
96
+ codecov :
97
+ description : ' Publish merged coverage and unittest reports to Codecov.'
98
+ required : false
99
+ default : false
100
+ type : boolean
101
+ codacy :
102
+ description : ' Publish merged coverage report to Codacy.'
103
+ required : false
104
+ default : false
105
+ type : boolean
106
+ dorny :
107
+ description : ' Publish merged unittest report via Dorny Test-Reporter.'
108
+ required : false
109
+ default : false
110
+ type : boolean
111
+ cleanup :
112
+ description : ' Cleanup artifacts afterwards.'
113
+ required : false
114
+ default : true
115
+ type : boolean
96
116
secrets :
97
117
PYPI_TOKEN :
98
118
description : " Token for pushing releases to PyPI."
99
119
required : false
120
+ CODECOV_TOKEN :
121
+ description : " Token for pushing coverage and unittest results to Codecov."
122
+ required : false
100
123
CODACY_PROJECT_TOKEN :
101
124
description : " Token for pushing coverage results to Codacy."
102
125
required : false
@@ -127,10 +150,10 @@ jobs:
127
150
package_name : ${{ inputs.package_name }}
128
151
python_version : ${{ inputs.apptest_python_version }}
129
152
python_version_list : ${{ inputs.apptest_python_version_list }}
130
- system_list : ${{ inputs.apptest_system_list }}
131
- include_list : ${{ inputs.apptest_include_list }}
132
- exclude_list : ${{ inputs.apptest_exclude_list }}
133
- disable_list : ${{ inputs.apptest_disable_list }}
153
+ system_list : ${{ inputs.apptest_system_list }}
154
+ include_list : ${{ inputs.apptest_include_list }}
155
+ exclude_list : ${{ inputs.apptest_exclude_list }}
156
+ disable_list : ${{ inputs.apptest_disable_list }}
134
157
135
158
UnitTesting :
136
159
uses : pyTooling/Actions/.github/workflows/UnitTesting.yml@main
@@ -167,7 +190,7 @@ jobs:
167
190
- UnitTestingParams
168
191
with :
169
192
python_version : ${{ needs.UnitTestingParams.outputs.python_version }}
170
- directory : ${{ inputs.package_namespace }}/${{ inputs.package_name }}
193
+ directory : ${{ inputs.package_namespace }}/${{ inputs.package_name }}
171
194
# fail_below: 70
172
195
173
196
Package :
@@ -177,7 +200,7 @@ jobs:
177
200
- UnitTesting
178
201
with :
179
202
python_version : ${{ needs.UnitTestingParams.outputs.python_version }}
180
- artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}
203
+ artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}
181
204
182
205
# AppTesting:
183
206
# uses: pyTooling/Actions/.github/workflows/ApplicationTesting.yml@main
@@ -193,24 +216,41 @@ jobs:
193
216
PublishCoverageResults :
194
217
uses : pyTooling/Actions/.github/workflows/PublishCoverageResults.yml@main
195
218
needs :
219
+ - ConfigParams
196
220
- UnitTestingParams
197
221
- UnitTesting
198
222
with :
199
- # coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}
200
- # coverage_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }}
201
- coverage_json_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }}
202
- coverage_html_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
223
+ # coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}
224
+ # coverage_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_xml }}
225
+ # coverage_report_xml_directory: ${{ needs.ConfigParams.outputs.coverage_report_xml_directory }}
226
+ # coverage_report_xml_filename: ${{ needs.ConfigParams.outputs.coverage_report_xml_filename }}
227
+ coverage_json_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }}
228
+ coverage_report_json_directory : ${{ needs.ConfigParams.outputs.coverage_report_json_directory }}
229
+ coverage_report_json_filename : ${{ needs.ConfigParams.outputs.coverage_report_json_filename }}
230
+ coverage_html_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
231
+ coverage_report_html_directory : ${{ needs.ConfigParams.outputs.coverage_report_html_directory }}
232
+ codecov : ${{ inputs.codecov }}
233
+ codacy : ${{ inputs.codacy }}
203
234
secrets :
204
- codacy_token : ${{ secrets.CODACY_PROJECT_TOKEN }}
235
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
236
+ CODACY_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
205
237
206
238
PublishTestResults :
207
239
uses : pyTooling/Actions/.github/workflows/PublishTestResults.yml@main
208
240
needs :
241
+ - ConfigParams
209
242
- UnitTestingParams
210
243
- UnitTesting
211
244
with :
212
- additional_merge_args : ' -d "--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit"'
213
- merged_junit_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
245
+ additional_merge_args : ' -d "--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit"'
246
+ testsuite-summary-name : ${{ inputs.package_name }}
247
+ merged_junit_filename : ${{ needs.ConfigParams.outputs.unittest_merged_report_xml_filename }}
248
+ merged_junit_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
249
+ dorny : ${{ inputs.dorny }}
250
+ codecov : ${{ inputs.codecov }}
251
+
252
+ secrets :
253
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
214
254
215
255
# VerifyDocs:
216
256
# uses: pyTooling/Actions/.github/workflows/VerifyDocs.yml@main
@@ -228,12 +268,12 @@ jobs:
228
268
- PublishCoverageResults
229
269
# - VerifyDocs
230
270
with :
231
- python_version : ${{ needs.UnitTestingParams.outputs.python_version }}
271
+ python_version : ${{ needs.UnitTestingParams.outputs.python_version }}
232
272
coverage_report_json_directory : ${{ needs.ConfigParams.outputs.coverage_report_json_directory }}
233
- unittest_xml_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}-ubuntu-native-3.12
234
- coverage_json_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }}
235
- html_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }}
236
- latex_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }}
273
+ unittest_xml_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
274
+ coverage_json_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_json }}
275
+ html_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }}
276
+ latex_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }}
237
277
238
278
IntermediateCleanUp :
239
279
uses : pyTooling/Actions/.github/workflows/IntermediateCleanUp.yml@main
@@ -242,9 +282,10 @@ jobs:
242
282
- PublishCoverageResults
243
283
- PublishTestResults
244
284
- Documentation
285
+ if : ${{ inputs.cleanup }}
245
286
with :
246
287
sqlite_coverage_artifacts_prefix : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}-
247
- xml_unittest_artifacts_prefix : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}-
288
+ xml_unittest_artifacts_prefix : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}-
248
289
249
290
# PDFDocumentation:
250
291
# uses: pyTooling/Actions/.github/workflows/LaTeXDocumentation.yml@main
@@ -265,9 +306,9 @@ jobs:
265
306
- PublishCoverageResults
266
307
- StaticTypeCheck
267
308
with :
268
- doc : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }}
309
+ doc : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }}
269
310
coverage : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
270
- typing : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }}
311
+ typing : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }}
271
312
272
313
ReleasePage :
273
314
uses : pyTooling/Actions/.github/workflows/Release.yml@main
@@ -303,6 +344,7 @@ jobs:
303
344
- PublishToGitHubPages
304
345
# - PublishOnPyPI
305
346
- IntermediateCleanUp
347
+ if : ${{ inputs.cleanup }}
306
348
with :
307
349
package : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}
308
350
remaining : |
0 commit comments