Also upload unit test results in case of errors.

This commit is contained in:
Patrick Lehmann
2024-06-18 01:04:31 +02:00
parent d4afc820ab
commit dfc9221529
3 changed files with 6 additions and 2 deletions

View File

@@ -328,20 +328,24 @@ jobs:
- name: Convert coverage to XML format (Cobertura)
if: inputs.coverage_xml_artifact != ''
continue-on-error: true
run: coverage xml --data-file=.coverage
- name: Convert coverage to JSON format
if: inputs.coverage_json_artifact != ''
continue-on-error: true
run: coverage json --data-file=.coverage
- name: Convert coverage to HTML format
if: inputs.coverage_html_artifact != ''
continue-on-error: true
run: |
coverage html --data-file=.coverage -d ${{ steps.getVariables.outputs.coverage_report_html_directory }}
rm ${{ steps.getVariables.outputs.coverage_report_html_directory }}/.gitignore
- name: 📤 Upload 'TestReportSummary.xml' artifact
if: inputs.unittest_xml_artifact != ''
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.unittest_xml_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}

View File

@@ -1,2 +1,2 @@
wheel ~= 0.43
twine ~= 5.0
twine ~= 5.1

View File

@@ -9,5 +9,5 @@ pytest-cov ~= 5.0
# Static Type Checking
mypy ~= 1.10
typing_extensions ~= 4.11
typing_extensions ~= 4.12
lxml ~= 5.1