mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Create, collect and publish junit reports for static typing.
(cherry picked from commit fb8363afdf53d6656fe020dd08f9e91d9da45565)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user