Create, collect and publish junit reports for static typing.

(cherry picked from commit fb8363afdf53d6656fe020dd08f9e91d9da45565)
This commit is contained in:
Patrick Lehmann
2022-02-28 18:28:26 +01:00
parent 0a1d11d24f
commit 2d10c74d2f
4 changed files with 58 additions and 28 deletions

View File

@@ -52,7 +52,7 @@ jobs:
python-coverage:p
python-lxml:p
mingw_requirements: '-r tests/requirements.mingw.txt'
test_directory: 'tests'
tests_directory: 'tests'
unittest_directory: 'unit'
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}
@@ -65,7 +65,7 @@ jobs:
# Optional
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
requirements: '-r tests/requirements.txt'
test_directory: 'tests'
tests_directory: 'tests'
unittest_directory: 'unit'
secrets:
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
@@ -75,18 +75,22 @@ jobs:
needs:
- Params
with:
commands: mypy --html-report htmlmypy -p ToolName
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
commands: |
mypy --junit-xml StaticTypingSummary.xml --html-report htmlmypy -p ToolName
html_artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing_html }}
junit_artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing_junit }}
# Optional
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
requirements: '-r tests/requirements.txt'
report: 'htmlmypy'
html_report: 'htmlmypy'
junit_report: 'StaticTypingSummary.xml'
allow_failure: true
PublishTestResults:
uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@main
needs:
- UnitTesting
- StaticTypeCheck
with:
# Optional
report_files: artifacts/**/*.xml
@@ -178,5 +182,6 @@ jobs:
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-macos-3.9
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-macos-3.10
${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
${{ fromJson(needs.Params.outputs.params).artifacts.typing_html }}
${{ fromJson(needs.Params.outputs.params).artifacts.typing_junit }}
${{ fromJson(needs.Params.outputs.params).artifacts.doc }}