mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Added input parameter to the template and documented in the README.
This commit is contained in:
8
.github/workflows/PublishTestResults.yml
vendored
8
.github/workflows/PublishTestResults.yml
vendored
@@ -24,6 +24,12 @@ name: Publish Unit Test Results
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
report_files:
|
||||||
|
description: 'Pattern of report files to upload. Can be a comma separated list.'
|
||||||
|
required: false
|
||||||
|
default: 'artifacts/**/*.xml'
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
PublishTestResults:
|
PublishTestResults:
|
||||||
@@ -44,5 +50,5 @@ jobs:
|
|||||||
uses: dorny/test-reporter@v1
|
uses: dorny/test-reporter@v1
|
||||||
with:
|
with:
|
||||||
name: Unit Test Results
|
name: Unit Test Results
|
||||||
path: artifacts/**/*.xml
|
path: ${{ inputs.report_files }}
|
||||||
reporter: java-junit
|
reporter: java-junit
|
||||||
|
|||||||
@@ -53,6 +53,9 @@ jobs:
|
|||||||
uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@main
|
uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@main
|
||||||
needs:
|
needs:
|
||||||
- UnitTesting
|
- UnitTesting
|
||||||
|
with:
|
||||||
|
# Optional
|
||||||
|
report_files: artifacts/**/*.xml
|
||||||
|
|
||||||
Package:
|
Package:
|
||||||
uses: pyTooling/Actions/.github/workflows/Package.yml@main
|
uses: pyTooling/Actions/.github/workflows/Package.yml@main
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ As shown in the screenshot above, the expected order is:
|
|||||||
- [Release](.github/workflows/Release.yml): publish GitHub Release.
|
- [Release](.github/workflows/Release.yml): publish GitHub Release.
|
||||||
- [Package](.github/workflows/Package.yml): generate source and wheel packages, and upload them as an artifact.
|
- [Package](.github/workflows/Package.yml): generate source and wheel packages, and upload them as an artifact.
|
||||||
- [PublishOnPyPI](.github/workflows/PublishOnPyPI.yml): publish source and wheel packages to PyPI.
|
- [PublishOnPyPI](.github/workflows/PublishOnPyPI.yml): publish source and wheel packages to PyPI.
|
||||||
|
- [PublishTestResults](.github/workflows/PublishTestResults.yml): publish unit test results through GH action `dorny/test-reporter`.
|
||||||
- Documentation:
|
- Documentation:
|
||||||
- [BuildTheDocs](.github/workflows/BuildTheDocs.yml): build Sphinx documentation with BuildTheDocs, and upload HTML as
|
- [BuildTheDocs](.github/workflows/BuildTheDocs.yml): build Sphinx documentation with BuildTheDocs, and upload HTML as
|
||||||
an artifact.
|
an artifact.
|
||||||
|
|||||||
Reference in New Issue
Block a user