diff --git a/.github/workflows/CompletePipeline.yml b/.github/workflows/CompletePipeline.yml index b4073f9..6ad44b8 100644 --- a/.github/workflows/CompletePipeline.yml +++ b/.github/workflows/CompletePipeline.yml @@ -181,6 +181,10 @@ jobs: # pacboy: "msys/git python-lxml:p" unittest_report_xml_directory: ${{ needs.ConfigParams.outputs.unittest_report_xml_directory }} unittest_report_xml_filename: ${{ needs.ConfigParams.outputs.unittest_report_xml_filename }} + coverage_report_xml_directory: ${{ needs.ConfigParams.outputs.coverage_report_xml_directory }} + coverage_report_xml_filename: ${{ needs.ConfigParams.outputs.coverage_report_xml_filename }} + coverage_report_json_directory: ${{ needs.ConfigParams.outputs.coverage_report_json_directory }} + coverage_report_json_filename: ${{ needs.ConfigParams.outputs.coverage_report_json_filename }} coverage_report_html_directory: ${{ needs.ConfigParams.outputs.coverage_report_html_directory }} unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }} coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }} diff --git a/.github/workflows/UnitTesting.yml b/.github/workflows/UnitTesting.yml index ea88c82..77ba882 100644 --- a/.github/workflows/UnitTesting.yml +++ b/.github/workflows/UnitTesting.yml @@ -109,6 +109,26 @@ on: required: false default: 'pyproject.toml' type: string + coverage_report_xml_directory: + description: 'Directory where the coverage report in XML format will be generated.' + required: false + default: 'report/coverage' + type: string + coverage_report_xml_filename: + description: 'Filename how the coverage report in XML format will be named.' + required: false + default: 'coverage.xml' + type: string + coverage_report_json_directory: + description: 'Directory where the coverage report in JSON format will be generated.' + required: false + default: 'report/coverage' + type: string + coverage_report_json_filename: + description: 'Filename how the coverage report in JSON format will be named.' + required: false + default: 'report/coverage/coverage.json' + type: string coverage_report_html_directory: description: 'Directory where the coverage report in HTML format will be generated.' required: false @@ -416,7 +436,7 @@ jobs: # uses: pyTooling/upload-artifact@v4 # with: # name: ${{ inputs.unittest_html_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }} -# path: ${{ steps.getVariables.outputs.unittest_report_html_directory }} +# path: ${{ inputs.unittest_report_html_directory }} # if-no-files-found: error # retention-days: 1 @@ -437,7 +457,8 @@ jobs: uses: pyTooling/upload-artifact@v4 with: name: ${{ inputs.coverage_xml_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }} - path: ${{ steps.getVariables.outputs.coverage_report_xml }} + working-directory: ${{ inputs.coverage_report_xml_directory }} + path: ${{ inputs.coverage_report_xml_filename }} if-no-files-found: error retention-days: 1 @@ -447,7 +468,8 @@ jobs: uses: pyTooling/upload-artifact@v4 with: name: ${{ inputs.coverage_json_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }} - path: ${{ steps.getVariables.outputs.coverage_report_json }} + working-directory: ${{ inputs.coverage_report_json_directory }} + path: ${{ inputs.coverage_report_json_filename }} if-no-files-found: error retention-days: 1 @@ -457,7 +479,7 @@ jobs: uses: pyTooling/upload-artifact@v4 with: name: ${{ inputs.coverage_html_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }} - working-directory: ${{ steps.getVariables.outputs.coverage_report_html_directory }} + working-directory: ${{ inputs.coverage_report_html_directory }} path: '*' if-no-files-found: error retention-days: 1