mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Updated example pipeline.
This commit is contained in:
@@ -54,16 +54,16 @@ jobs:
|
|||||||
mingw_requirements: '-r tests/requirements.mingw.txt'
|
mingw_requirements: '-r tests/requirements.mingw.txt'
|
||||||
tests_directory: 'tests'
|
tests_directory: 'tests'
|
||||||
unittest_directory: 'unit'
|
unittest_directory: 'unit'
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}
|
||||||
|
|
||||||
Coverage:
|
Coverage:
|
||||||
uses: pyTooling/Actions/.github/workflows/CoverageCollection.yml@main
|
uses: pyTooling/Actions/.github/workflows/CoverageCollection.yml@main
|
||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }}
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs..Params.outputs.python_version }}
|
||||||
requirements: '-r tests/requirements.txt'
|
requirements: '-r tests/requirements.txt'
|
||||||
tests_directory: 'tests'
|
tests_directory: 'tests'
|
||||||
unittest_directory: 'unit'
|
unittest_directory: 'unit'
|
||||||
@@ -77,10 +77,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
commands: |
|
commands: |
|
||||||
mypy --junit-xml StaticTypingSummary.xml --html-report htmlmypy -p ToolName
|
mypy --junit-xml StaticTypingSummary.xml --html-report htmlmypy -p ToolName
|
||||||
html_artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing_html }}
|
html_artifact: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }}
|
||||||
junit_artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing_junit }}
|
junit_artifact: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_junit }}
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs..Params.outputs.python_version }}
|
||||||
requirements: '-r tests/requirements.txt'
|
requirements: '-r tests/requirements.txt'
|
||||||
html_report: 'htmlmypy'
|
html_report: 'htmlmypy'
|
||||||
junit_report: 'StaticTypingSummary.xml'
|
junit_report: 'StaticTypingSummary.xml'
|
||||||
@@ -101,9 +101,9 @@ jobs:
|
|||||||
- Params
|
- Params
|
||||||
- Coverage
|
- Coverage
|
||||||
with:
|
with:
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs..Params.outputs.python_version }}
|
||||||
requirements: 'wheel'
|
requirements: 'wheel'
|
||||||
|
|
||||||
Release:
|
Release:
|
||||||
@@ -123,9 +123,9 @@ jobs:
|
|||||||
- Release
|
- Release
|
||||||
- Package
|
- Package
|
||||||
with:
|
with:
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.package }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs..Params.outputs.python_version }}
|
||||||
requirements: 'wheel twine'
|
requirements: 'wheel twine'
|
||||||
secrets:
|
secrets:
|
||||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
||||||
@@ -136,7 +136,7 @@ jobs:
|
|||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
# Optional
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs..Params.outputs.python_version }}
|
||||||
|
|
||||||
BuildTheDocs:
|
BuildTheDocs:
|
||||||
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@main
|
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@main
|
||||||
@@ -144,7 +144,7 @@ jobs:
|
|||||||
- Params
|
- Params
|
||||||
- VerifyDocs
|
- VerifyDocs
|
||||||
with:
|
with:
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}
|
||||||
|
|
||||||
PublishToGitHubPages:
|
PublishToGitHubPages:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@main
|
uses: pyTooling/Actions/.github/workflows/PublishToGitHubPages.yml@main
|
||||||
@@ -154,10 +154,10 @@ jobs:
|
|||||||
- Coverage
|
- Coverage
|
||||||
- StaticTypeCheck
|
- StaticTypeCheck
|
||||||
with:
|
with:
|
||||||
doc: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
doc: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}
|
||||||
# Optional
|
# Optional
|
||||||
coverage: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
|
coverage: ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }}
|
||||||
typing: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
typing: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }}
|
||||||
|
|
||||||
ArtifactCleanUp:
|
ArtifactCleanUp:
|
||||||
uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@main
|
uses: pyTooling/Actions/.github/workflows/ArtifactCleanUp.yml@main
|
||||||
@@ -169,19 +169,10 @@ jobs:
|
|||||||
- BuildTheDocs
|
- BuildTheDocs
|
||||||
- PublishToGitHubPages
|
- PublishToGitHubPages
|
||||||
with:
|
with:
|
||||||
package: ${{ fromJson(needs.Params.outputs.params).artifacts.package }}
|
package: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
|
||||||
remaining: |
|
remaining: |
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-ubuntu-3.8
|
${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}-*
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-ubuntu-3.9
|
${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }}
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-ubuntu-3.10
|
${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }}
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-windows-3.8
|
${{ fromJson(needs.Params.outputs.artifact_names).statictyping_junit }}
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-windows-3.9
|
${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-windows-3.10
|
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-msys2-3.9
|
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-macos-3.8
|
|
||||||
${{ 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_html }}
|
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.typing_junit }}
|
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user