@@ -46,9 +46,42 @@ the installation is verified. This aims for packaging and dependency mistakes in
4646Instantiation
4747*************
4848
49- .. todo ::
50-
51- InstallPackage:: Needs instantiation instructions.
49+ The following instantiation example creates a ``Install `` job derived from job template ``InstallPackage `` version
50+ `@r6 `. It installs the Python package on various platforms using a precomputed job-matrix created by job
51+ ``InstallParams ``. This job uses the same ``Parameters `` job template as job ``UnitTestingParams ``, which was used to
52+ define parameters for the packaging job ``Package ``.
53+
54+ .. code-block :: yaml
55+
56+ jobs :
57+ UnitTestingParams :
58+ uses : pyTooling/Actions/.github/workflows/Parameters.yml@r6
59+ with :
60+ package_name : myPackage
61+
62+ InstallParams :
63+ uses : pyTooling/Actions/.github/workflows/Parameters.yml@r6
64+ with :
65+ package_name : myPackage
66+ python_version_list : ' '
67+
68+ Package :
69+ uses : pyTooling/Actions/.github/workflows/Package.yml@r6
70+ needs :
71+ - UnitTestingParams
72+ with :
73+ artifact : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}
74+
75+ Install :
76+ uses : pyTooling/Actions/.github/workflows/InstallPackage.yml@r6
77+ needs :
78+ - UnitTestingParams
79+ - InstallParams
80+ - Package
81+ with :
82+ jobs : ${{ needs.InstallParams.outputs.python_jobs }}
83+ wheel : ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}
84+ package_name : ${{ needs.UnitTestingParams.outputs.package_fullname }}
5285
5386
5487 .. _JOBTMPL/InstallPackage/Parameters :
@@ -58,9 +91,15 @@ Parameter Summary
5891
5992.. rubric :: Goto :ref:`input parameters <JOBTMPL/InstallPackage/Inputs>`
6093
61- .. todo ::
62-
63- InstallPackage:: Needs a parameter list.
94+ +-------------------------------------------------------------------------+----------+----------+-----------------------------------------------------------------------------------------------------------------------------------+
95+ | Parameter Name | Required | Type | Default |
96+ +=========================================================================+==========+==========+===================================================================================================================================+
97+ | :ref: `JOBTMPL/InstallPackage/Input/jobs ` | yes | string | — — — — |
98+ +-------------------------------------------------------------------------+----------+----------+-----------------------------------------------------------------------------------------------------------------------------------+
99+ | :ref: `JOBTMPL/InstallPackage/Input/wheel ` | yes | string | — — — — |
100+ +-------------------------------------------------------------------------+----------+----------+-----------------------------------------------------------------------------------------------------------------------------------+
101+ | :ref: `JOBTMPL/InstallPackage/Input/package_name ` | yes | string | — — — — |
102+ +-------------------------------------------------------------------------+----------+----------+-----------------------------------------------------------------------------------------------------------------------------------+
64103
65104.. rubric :: Goto :ref:`secrets <JOBTMPL/InstallPackage/Secrets>`
66105
@@ -76,9 +115,49 @@ This job template has no output parameters.
76115Input Parameters
77116****************
78117
79- .. todo ::
118+ .. _JOBTMPL/InstallPackage/Input/jobs :
119+
120+ jobs
121+ ====
122+
123+ :Type: string
124+ :Required: yes
125+ :Default Value: — — — —
126+ :Possible Values: A JSON string with an array of dictionaries with the following key-value pairs:
127+
128+ :sysicon: icon to display
129+ :system: name of the system
130+ :runs-on: virtual machine image and base operating system
131+ :runtime: name of the runtime environment if not running natively on the VM image
132+ :shell: name of the shell
133+ :pyicon: icon for CPython or pypy
134+ :python: Python version
135+ :envname: full name of the selected environment
136+ :Description: A JSON encoded job matrix to run multiple Python job variations.
137+
138+
139+ .. _JOBTMPL/InstallPackage/Input/wheel :
140+
141+ wheel
142+ =====
143+
144+ :Type: string
145+ :Required: yes
146+ :Default Value: — — — —
147+ :Possible Values: Any valid artifact name.
148+ :Description: The artifact containing the packaged Python code as wheel.
149+
150+
151+ .. _JOBTMPL/InstallPackage/Input/package_name :
152+
153+ package_name
154+ ============
80155
81- InstallPackage:: Needs input parameter descriptions.
156+ :Type: string
157+ :Required: yes
158+ :Default Value: — — — —
159+ :Possible Values: Any valid Python package, subpackage or module name.
160+ :Description: The package or module containing the version information as a string in ``__version__ ``.
82161
83162
84163.. _JOBTMPL/InstallPackage/Secrets :
0 commit comments