diff --git a/.github/workflows/CheckDocumentation.yml b/.github/workflows/CheckDocumentation.yml index c092b5c..285516a 100644 --- a/.github/workflows/CheckDocumentation.yml +++ b/.github/workflows/CheckDocumentation.yml @@ -47,10 +47,10 @@ jobs: - name: ⏬ Checkout repository uses: actions/checkout@v4 - - name: 🐍 Setup Python ${{ inputs.python_version }} + - name: 🐍 Setup Python 3.11 uses: actions/setup-python@v5 with: - python-version: ${{ inputs.python_version }} + python-version: "3.11" - name: 🔧 Install wheel,tomli and pip dependencies (native) run: | diff --git a/.github/workflows/LaTeXDocumentation.yml b/.github/workflows/LaTeXDocumentation.yml index c8b2dcc..0c4d375 100644 --- a/.github/workflows/LaTeXDocumentation.yml +++ b/.github/workflows/LaTeXDocumentation.yml @@ -53,7 +53,8 @@ jobs: - name: Compile LaTeX document uses: xu-cheng/latex-action@master with: - root_file: latex/${{ inputs.document }}.tex + working_directory: latex + root_file: ${{ inputs.document }}.tex - name: 📤 Upload 'PDF Documentation' artifact uses: actions/upload-artifact@v4 diff --git a/.github/workflows/PublishTestResults.yml b/.github/workflows/PublishTestResults.yml index 36249e8..fd9391a 100644 --- a/.github/workflows/PublishTestResults.yml +++ b/.github/workflows/PublishTestResults.yml @@ -24,6 +24,12 @@ name: Publish Unit Test Results on: workflow_call: + inputs: + merged_junit_artifact: + description: 'Name of the merged JUnit Test Summary artifact.' + required: false + default: '' + type: string jobs: PublishTestResults: @@ -72,3 +78,12 @@ jobs: name: Unit Test Results path: junit/merged.xml reporter: java-junit + + - name: 📤 Upload merged 'JUnit Test Summary' artifact + if: inputs.merged_junit_artifact != '' + uses: actions/upload-artifact@v4 + with: + name: ${{ inputs.merged_junit_artifact }} + path: junit/merged.xml + if-no-files-found: error + retention-days: 1 diff --git a/.github/workflows/SphinxDocumentation.yml b/.github/workflows/SphinxDocumentation.yml index 502b139..34f9d48 100644 --- a/.github/workflows/SphinxDocumentation.yml +++ b/.github/workflows/SphinxDocumentation.yml @@ -44,6 +44,21 @@ on: required: false default: 'doc' type: string + coverage_json_artifact: + description: 'Name of the coverage JSON artifact.' + required: false + default: '' + type: string + unittest_xml_artifact: + description: 'Name of the unittest XML artifact.' + required: false + default: '' + type: string + unittest_xml_directory: + description: 'Directory where unittest XML artifact is extracted.' + required: false + default: 'report/unit' + type: string html_artifact: description: 'Name of the HTML documentation artifact.' required: false @@ -54,11 +69,6 @@ on: required: false default: '' type: string - coverage_json_artifact: - description: 'Name of the JSON coverage artifact.' - required: false - default: '' - type: string jobs: Sphinx: @@ -140,6 +150,13 @@ jobs: print(f"DEBUG:\n html={htmlDirectory}\n xml={xmlFile}\n json={jsonFile}") + - name: 📥 Download artifacts '${{ inputs.unittest_xml_artifact }}' from 'Unittesting' job + if: inputs.unittest_xml_artifact != '' + uses: actions/download-artifact@v4 + with: + name: ${{ inputs.unittest_xml_artifact }} + path: ${{ inputs.unittest_xml_directory }} + - name: 📥 Download artifacts '${{ inputs.coverage_json_artifact }}' from 'PublishCoverageResults' job if: inputs.coverage_json_artifact != '' uses: actions/download-artifact@v4