File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,6 +406,7 @@ jobs:
406406 needs :
407407 - UnitTestingParams
408408 - Documentation
409+ if : contains(inputs.documentation_steps, 'latex') && contains(inputs.documentation_steps, 'pdf')
409410 with :
410411 document : ${{ needs.UnitTestingParams.outputs.package_fullname }}
411412 latex_artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_latex }}
@@ -421,6 +422,7 @@ jobs:
421422# - PDFDocumentation
422423 - PublishCoverageResults
423424 - StaticTypeCheck
425+ if : contains(inputs.documentation_steps, 'pages')
424426 with :
425427 doc : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).documentation_html }}
426428 coverage : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
Original file line number Diff line number Diff line change @@ -242,9 +242,9 @@ jobs:
242242 package_namespace = "${{ inputs.package_namespace }}".strip()
243243 package_name = "${{ inputs.package_name }}".strip()
244244 artifact_basename = "${{ steps.variables.outputs.artifact_basename }}"
245- documentationSteps = [ step for step in "${{ inputs.documentation_steps }}".split(" ") if step != ""]
245+ documentationSteps = set( step for step in "${{ inputs.documentation_steps }}".split(" ") if step != "")
246246 if "none" in documentationSteps:
247- documentationSteps = []
247+ documentationSteps = set()
248248
249249 artifact_names = {
250250 "unittesting_xml": f"{artifact_basename}-UnitTestReportSummary-XML",
Original file line number Diff line number Diff line change 8383 Sphinx-HTML :
8484 name : 📓 HTML Documentation using Sphinx and Python ${{ inputs.python_version }}
8585 runs-on : " ubuntu-${{ inputs.ubuntu_image_version }}"
86-
86+ if : inputs.html_artifact != ''
8787 steps :
8888 - name : ⏬ Checkout repository
8989 uses : actions/checkout@v6
@@ -142,7 +142,7 @@ jobs:
142142 Sphinx-LaTeX :
143143 name : 📓 LaTeX Documentation using Sphinx and Python ${{ inputs.python_version }}
144144 runs-on : " ubuntu-${{ inputs.ubuntu_image_version }}"
145-
145+ if : inputs.latex_artifact != ''
146146 steps :
147147 - name : ⏬ Checkout repository
148148 uses : actions/checkout@v6
You can’t perform that action at this time.
0 commit comments