mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Adjusted documentation to latest changes.
This commit is contained in:
@@ -47,10 +47,9 @@ Complex Example
|
|||||||
- PublishToGitHubPages
|
- PublishToGitHubPages
|
||||||
- PublishTestResults
|
- PublishTestResults
|
||||||
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.9
|
${{ fromJson(needs.Params.outputs.artifact_names).unittesting_xml }}-*
|
||||||
${{ fromJson(needs.Params.outputs.params).artifacts.unittesting }}-ubuntu-3.10
|
|
||||||
|
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ This jobs compiles the documentation written in ReStructured Text with Sphinx us
|
|||||||
1. Checkout repository.
|
1. Checkout repository.
|
||||||
2. Build the documentation.
|
2. Build the documentation.
|
||||||
3. Upload the HTML documentation as an artifact.
|
3. Upload the HTML documentation as an artifact.
|
||||||
|
4. Publish the HTML documentation to GitHub Pages.
|
||||||
|
|
||||||
**Dependencies:**
|
**Dependencies:**
|
||||||
|
|
||||||
@@ -18,6 +19,7 @@ This jobs compiles the documentation written in ReStructured Text with Sphinx us
|
|||||||
* :gh:`actions/upload-artifact`
|
* :gh:`actions/upload-artifact`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Instantiation
|
Instantiation
|
||||||
*************
|
*************
|
||||||
|
|
||||||
@@ -29,8 +31,7 @@ Simple Example
|
|||||||
jobs:
|
jobs:
|
||||||
BuildTheDocs:
|
BuildTheDocs:
|
||||||
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@r0
|
uses: pyTooling/Actions/.github/workflows/BuildTheDocs.yml@r0
|
||||||
with:
|
|
||||||
artifact: Documentation
|
|
||||||
|
|
||||||
Complex Example
|
Complex Example
|
||||||
===============
|
===============
|
||||||
@@ -43,7 +44,7 @@ Complex Example
|
|||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}
|
||||||
|
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
@@ -55,11 +56,13 @@ artifact
|
|||||||
+----------------+----------+----------+--------------+
|
+----------------+----------+----------+--------------+
|
||||||
| Parameter Name | Required | Type | Default |
|
| Parameter Name | Required | Type | Default |
|
||||||
+================+==========+==========+==============+
|
+================+==========+==========+==============+
|
||||||
| artifact | yes | string | — — — — |
|
| artifact | optional | string | ``""`` |
|
||||||
+----------------+----------+----------+--------------+
|
+----------------+----------+----------+--------------+
|
||||||
|
|
||||||
Name of the documentation artifact.
|
Name of the documentation artifact.
|
||||||
|
|
||||||
|
If no artifact name is given, the job directly publishes the documentation's HTML content to GitHub Pages.
|
||||||
|
|
||||||
|
|
||||||
Secrets
|
Secrets
|
||||||
*******
|
*******
|
||||||
|
|||||||
@@ -69,8 +69,8 @@ Complex Example
|
|||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs.Params.outputs.python_version }}
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.Coverage }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).codecoverage_html }}
|
||||||
secrets:
|
secrets:
|
||||||
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ Complex Example
|
|||||||
- Params
|
- Params
|
||||||
- Coverage
|
- Coverage
|
||||||
with:
|
with:
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs.Params.outputs.python_version }}
|
||||||
requirements: -r build/requirements.txt
|
requirements: -r build/requirements.txt
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.Package }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
|
||||||
|
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ by that job. Finally, the list of requirements is overwritten to load a list of
|
|||||||
- Params
|
- Params
|
||||||
- Package
|
- Package
|
||||||
with:
|
with:
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs.Params.outputs.python_version }}
|
||||||
requirements: -r dist/requirements.txt
|
requirements: -r dist/requirements.txt
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.Package }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).package_all }}
|
||||||
secrets:
|
secrets:
|
||||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ Complex Example
|
|||||||
- Coverage
|
- Coverage
|
||||||
- StaticTypeCheck
|
- StaticTypeCheck
|
||||||
with:
|
with:
|
||||||
doc: ${{ fromJson(needs.Params.outputs.params).artifacts.doc }}
|
doc: ${{ fromJson(needs.Params.outputs.artifact_names).documentation_html }}
|
||||||
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 }}
|
||||||
|
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
|||||||
@@ -48,12 +48,12 @@ Complex Example
|
|||||||
needs:
|
needs:
|
||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
python_version: ${{ fromJson(needs.Params.outputs.params).python_version }}
|
python_version: ${{ needs.Params.outputs.python_version }}
|
||||||
commands: |
|
commands: |
|
||||||
touch pyTooling/__init__.py
|
touch pyTooling/__init__.py
|
||||||
mypy --html-report htmlmypy -p pyTooling
|
mypy --html-report htmlmypy -p pyTooling
|
||||||
report: 'htmlmypy'
|
report: 'htmlmypy'
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.typing }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).statictyping_html }}
|
||||||
|
|
||||||
Commands
|
Commands
|
||||||
========
|
========
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ Simple Example
|
|||||||
- Params
|
- Params
|
||||||
with:
|
with:
|
||||||
jobs: ${{ needs.Params.outputs.python_jobs }}
|
jobs: ${{ needs.Params.outputs.python_jobs }}
|
||||||
artifact: ${{ fromJson(needs.Params.outputs.params).artifacts.Unittesting }}
|
artifact: ${{ fromJson(needs.Params.outputs.artifact_names).unittesting }}
|
||||||
|
|
||||||
|
|
||||||
Complex Example
|
Complex Example
|
||||||
|
|||||||
Reference in New Issue
Block a user