68
68
unittest_report_xml :
69
69
description : " "
70
70
value : ${{ jobs.Extract.outputs.unittest_report_xml }}
71
+ unittest_merged_report_xml_directory :
72
+ description : " "
73
+ value : ${{ jobs.Extract.outputs.unittest_merged_report_xml_directory }}
74
+ unittest_merged_report_xml_filename :
75
+ description : " "
76
+ value : ${{ jobs.Extract.outputs.unittest_merged_report_xml_filename }}
77
+ unittest_merged_report_xml :
78
+ description : " "
79
+ value : ${{ jobs.Extract.outputs.unittest_merged_report_xml }}
71
80
coverage_report_html_directory :
72
81
description : " "
73
82
value : ${{ jobs.Extract.outputs.coverage_report_html_directory }}
@@ -95,19 +104,22 @@ jobs:
95
104
name : 📓 Extract configurations from pyproject.toml
96
105
runs-on : " ubuntu-${{ inputs.ubuntu_image_version }}"
97
106
outputs :
98
- package_fullname : ${{ steps.getPackageName.outputs.package_fullname }}
99
- package_directory : ${{ steps.getPackageName.outputs.package_directory }}
100
- mypy_prepare_command : ${{ steps.getPackageName.outputs.mypy_prepare_command }}
101
- unittest_report_xml_directory : ${{ steps.getVariables.outputs.unittest_report_xml_directory }}
102
- unittest_report_xml_filename : ${{ steps.getVariables.outputs.unittest_report_xml_filename }}
103
- unittest_report_xml : ${{ steps.getVariables.outputs.unittest_report_xml }}
104
- coverage_report_html_directory : ${{ steps.getVariables.outputs.coverage_report_html_directory }}
105
- coverage_report_xml_directory : ${{ steps.getVariables.outputs.coverage_report_xml_directory }}
106
- coverage_report_xml_filename : ${{ steps.getVariables.outputs.coverage_report_xml_filename }}
107
- coverage_report_xml : ${{ steps.getVariables.outputs.coverage_report_xml }}
108
- coverage_report_json_directory : ${{ steps.getVariables.outputs.coverage_report_json_directory }}
109
- coverage_report_json_filename : ${{ steps.getVariables.outputs.coverage_report_json_filename }}
110
- coverage_report_json : ${{ steps.getVariables.outputs.coverage_report_json }}
107
+ package_fullname : ${{ steps.getPackageName.outputs.package_fullname }}
108
+ package_directory : ${{ steps.getPackageName.outputs.package_directory }}
109
+ mypy_prepare_command : ${{ steps.getPackageName.outputs.mypy_prepare_command }}
110
+ unittest_report_xml_directory : ${{ steps.getVariables.outputs.unittest_report_xml_directory }}
111
+ unittest_report_xml_filename : ${{ steps.getVariables.outputs.unittest_report_xml_filename }}
112
+ unittest_report_xml : ${{ steps.getVariables.outputs.unittest_report_xml }}
113
+ unittest_merged_report_xml_directory : ${{ steps.getVariables.outputs.unittest_merged_report_xml_directory }}
114
+ unittest_merged_report_xml_filename : ${{ steps.getVariables.outputs.unittest_merged_report_xml_filename }}
115
+ unittest_merged_report_xml : ${{ steps.getVariables.outputs.unittest_merged_report_xml }}
116
+ coverage_report_html_directory : ${{ steps.getVariables.outputs.coverage_report_html_directory }}
117
+ coverage_report_xml_directory : ${{ steps.getVariables.outputs.coverage_report_xml_directory }}
118
+ coverage_report_xml_filename : ${{ steps.getVariables.outputs.coverage_report_xml_filename }}
119
+ coverage_report_xml : ${{ steps.getVariables.outputs.coverage_report_xml }}
120
+ coverage_report_json_directory : ${{ steps.getVariables.outputs.coverage_report_json_directory }}
121
+ coverage_report_json_filename : ${{ steps.getVariables.outputs.coverage_report_json_filename }}
122
+ coverage_report_json : ${{ steps.getVariables.outputs.coverage_report_json }}
111
123
112
124
steps :
113
125
- name : ⏬ Checkout repository
@@ -178,6 +190,7 @@ jobs:
178
190
pyProjectSettings = tomli_load(file)
179
191
180
192
unittestXMLFile = Path(pyProjectSettings["tool"]["pytest"]["junit_xml"])
193
+ mergedUnittestXMLFile = Path(pyProjectSettings["tool"]["pyedaa-reports"]["junit_xml"])
181
194
coverageHTMLDirectory = Path(pyProjectSettings["tool"]["coverage"]["html"]["directory"])
182
195
coverageXMLFile = Path(pyProjectSettings["tool"]["coverage"]["xml"]["output"])
183
196
coverageJSONFile= Path(pyProjectSettings["tool"]["coverage"]["json"]["output"])
@@ -209,6 +222,9 @@ jobs:
209
222
unittest_report_xml_directory={unittestXMLFile.parent.as_posix()}
210
223
unittest_report_xml_filename={unittestXMLFile.name}
211
224
unittest_report_xml={unittestXMLFile.as_posix()}
225
+ unittest_merged_report_xml_directory={mergedUnittestXMLFile.parent.as_posix()}
226
+ unittest_merged_report_xml_filename={mergedUnittestXMLFile.name}
227
+ unittest_merged_report_xml={mergedUnittestXMLFile.as_posix()}
212
228
coverage_report_html_directory={coverageHTMLDirectory.as_posix()}
213
229
coverage_report_xml_directory={coverageXMLFile.parent.as_posix()}
214
230
coverage_report_xml_filename={coverageXMLFile.name}
@@ -218,4 +234,4 @@ jobs:
218
234
coverage_report_json={coverageJSONFile.as_posix()}
219
235
"""))
220
236
221
- print(f"DEBUG:\n unittest xml: {unittestXMLFile}\n coverage html: {coverageHTMLDirectory}\n coverage xml: {coverageXMLFile}\n coverage json: {coverageJSONFile}")
237
+ print(f"DEBUG:\n unittest xml: {unittestXMLFile}\n merged unittest xml: {mergedUnittestXMLFile}\n coverage html: {coverageHTMLDirectory}\n coverage xml: {coverageXMLFile}\n coverage json: {coverageJSONFile}")
0 commit comments