mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
update example pipeline
This commit is contained in:
@@ -11,10 +11,16 @@ jobs:
|
|||||||
uses: pyTooling/Actions/.github/workflows/Params.yml@dev
|
uses: pyTooling/Actions/.github/workflows/Params.yml@dev
|
||||||
with:
|
with:
|
||||||
name: ToolName
|
name: ToolName
|
||||||
|
# Optional
|
||||||
|
python_version: '3.10'
|
||||||
|
python_version_list: '3.8 3.9 3.10'
|
||||||
|
|
||||||
UnitTesting:
|
UnitTesting:
|
||||||
uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@dev
|
uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@dev
|
||||||
with:
|
with:
|
||||||
|
jobs: ${{ needs.Params.outputs.python_jobs }}
|
||||||
|
# Optional
|
||||||
|
requirements: '-r tests/requirements.txt'
|
||||||
TestReport: true
|
TestReport: true
|
||||||
|
|
||||||
Coverage:
|
Coverage:
|
||||||
@@ -22,8 +28,10 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
|
||||||
|
# Optional
|
||||||
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
|
requirements: '-r tests/requirements.txt'
|
||||||
secrets:
|
secrets:
|
||||||
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
|
|
||||||
@@ -32,9 +40,12 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
package: ${{ fromJson(needs.Params.outputs.params).package }}
|
mypy_args: -m ${{ fromJson(needs.Params.outputs.params).package }}
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
||||||
|
# Optional
|
||||||
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
|
requirements: '-r tests/requirements.txt'
|
||||||
|
html_report: 'htmlmypy'
|
||||||
|
|
||||||
Release:
|
Release:
|
||||||
uses: pyTooling/Actions/.github/workflows/Release.yml@dev
|
uses: pyTooling/Actions/.github/workflows/Release.yml@dev
|
||||||
@@ -51,8 +62,10 @@ jobs:
|
|||||||
- Params
|
- Params
|
||||||
- Coverage
|
- Coverage
|
||||||
with:
|
with:
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
|
||||||
|
# Optional
|
||||||
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
|
requirements: 'wheel'
|
||||||
|
|
||||||
PublishOnPyPI:
|
PublishOnPyPI:
|
||||||
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
|
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
|
||||||
@@ -62,8 +75,10 @@ jobs:
|
|||||||
- Release
|
- Release
|
||||||
- Package
|
- Package
|
||||||
with:
|
with:
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
|
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.wheel }}
|
||||||
|
# Optional
|
||||||
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
|
requirements: 'wheel twine'
|
||||||
secrets:
|
secrets:
|
||||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
||||||
|
|
||||||
@@ -72,6 +87,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
|
# Optional
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
||||||
|
|
||||||
BuildTheDocs:
|
BuildTheDocs:
|
||||||
@@ -91,6 +107,7 @@ jobs:
|
|||||||
- StaticTypeCheck
|
- StaticTypeCheck
|
||||||
with:
|
with:
|
||||||
doc: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
doc: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
||||||
|
# Optional
|
||||||
coverage: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
|
coverage: ${{ fromJson(needs.Params.outputs.params).artifacts.coverage }}
|
||||||
typing: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
typing: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user