mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Fix potential artifact upload for XML and JSON coverage artifacts.
This commit is contained in:
4
.github/workflows/CompletePipeline.yml
vendored
4
.github/workflows/CompletePipeline.yml
vendored
@@ -181,6 +181,10 @@ jobs:
|
|||||||
# pacboy: "msys/git python-lxml:p"
|
# pacboy: "msys/git python-lxml:p"
|
||||||
unittest_report_xml_directory: ${{ needs.ConfigParams.outputs.unittest_report_xml_directory }}
|
unittest_report_xml_directory: ${{ needs.ConfigParams.outputs.unittest_report_xml_directory }}
|
||||||
unittest_report_xml_filename: ${{ needs.ConfigParams.outputs.unittest_report_xml_filename }}
|
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 }}
|
coverage_report_html_directory: ${{ needs.ConfigParams.outputs.coverage_report_html_directory }}
|
||||||
unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
|
unittest_xml_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
|
||||||
coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}
|
coverage_sqlite_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_sqlite }}
|
||||||
|
|||||||
30
.github/workflows/UnitTesting.yml
vendored
30
.github/workflows/UnitTesting.yml
vendored
@@ -109,6 +109,26 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: 'pyproject.toml'
|
default: 'pyproject.toml'
|
||||||
type: string
|
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:
|
coverage_report_html_directory:
|
||||||
description: 'Directory where the coverage report in HTML format will be generated.'
|
description: 'Directory where the coverage report in HTML format will be generated.'
|
||||||
required: false
|
required: false
|
||||||
@@ -416,7 +436,7 @@ jobs:
|
|||||||
# uses: pyTooling/upload-artifact@v4
|
# uses: pyTooling/upload-artifact@v4
|
||||||
# with:
|
# with:
|
||||||
# name: ${{ inputs.unittest_html_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}
|
# 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
|
# if-no-files-found: error
|
||||||
# retention-days: 1
|
# retention-days: 1
|
||||||
|
|
||||||
@@ -437,7 +457,8 @@ jobs:
|
|||||||
uses: pyTooling/upload-artifact@v4
|
uses: pyTooling/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.coverage_xml_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}
|
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
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
@@ -447,7 +468,8 @@ jobs:
|
|||||||
uses: pyTooling/upload-artifact@v4
|
uses: pyTooling/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.coverage_json_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}
|
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
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
@@ -457,7 +479,7 @@ jobs:
|
|||||||
uses: pyTooling/upload-artifact@v4
|
uses: pyTooling/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.coverage_html_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}
|
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: '*'
|
path: '*'
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|||||||
Reference in New Issue
Block a user