From a4a54df1da89b9a73f0ee5ce36d57b1010469fbf Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 12 Jan 2024 09:37:31 +0100 Subject: [PATCH] Changed JSON artifact from status.json to full coverage report as JSON. --- .github/workflows/SphinxDocumentation.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/SphinxDocumentation.yml b/.github/workflows/SphinxDocumentation.yml index 3c84588..502b139 100644 --- a/.github/workflows/SphinxDocumentation.yml +++ b/.github/workflows/SphinxDocumentation.yml @@ -54,8 +54,8 @@ on: required: false default: '' type: string - coverage_html_artifact: - description: 'Name of the HTML coverage artifact.' + coverage_json_artifact: + description: 'Name of the JSON coverage artifact.' required: false default: '' type: string @@ -132,18 +132,20 @@ jobs: with github_output.open("a+", encoding="utf-8") as f: f.write(dedent(f"""\ coverage_report_html_directory={htmlDirectory.as_posix()} - coverage_report_xml={xmlFile} - coverage_report_json={jsonFile} + coverage_report_xml_directory={xmlFile.parent.as_posix()} + coverage_report_xml={xmlFile.as_posix()} + coverage_report_json_directory={jsonFile.parent.as_posix()} + coverage_report_json={jsonFile.as_posix()} """)) print(f"DEBUG:\n html={htmlDirectory}\n xml={xmlFile}\n json={jsonFile}") - - name: 📥 Download artifacts '${{ inputs.artifact }}' from 'Package' job - if: inputs.coverage_html_artifact != '' + - name: 📥 Download artifacts '${{ inputs.coverage_json_artifact }}' from 'PublishCoverageResults' job + if: inputs.coverage_json_artifact != '' uses: actions/download-artifact@v4 with: - name: ${{ inputs.coverage_html_artifact }} - path: ${{ steps.getVariables.outputs.coverage_report_html_directory }} + name: ${{ inputs.coverage_json_artifact }} + path: ${{ steps.getVariables.outputs.coverage_report_json_directory }} - name: ☑ Generate HTML documentation if: inputs.html_artifact != ''