mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Allow setting a pipeline startup delay.
This commit is contained in:
10
.github/workflows/CompletePipeline.yml
vendored
10
.github/workflows/CompletePipeline.yml
vendored
@@ -138,10 +138,10 @@ jobs:
|
|||||||
package_name: ${{ inputs.package_name }}
|
package_name: ${{ inputs.package_name }}
|
||||||
python_version: ${{ inputs.unittest_python_version }}
|
python_version: ${{ inputs.unittest_python_version }}
|
||||||
python_version_list: ${{ inputs.unittest_python_version_list }}
|
python_version_list: ${{ inputs.unittest_python_version_list }}
|
||||||
system_list: ${{ inputs.unittest_system_list }}
|
system_list: ${{ inputs.unittest_system_list }}
|
||||||
include_list: ${{ inputs.unittest_include_list }}
|
include_list: ${{ inputs.unittest_include_list }}
|
||||||
exclude_list: ${{ inputs.unittest_exclude_list }}
|
exclude_list: ${{ inputs.unittest_exclude_list }}
|
||||||
disable_list: ${{ inputs.unittest_disable_list }}
|
disable_list: ${{ inputs.unittest_disable_list }}
|
||||||
|
|
||||||
AppTestingParams:
|
AppTestingParams:
|
||||||
uses: pyTooling/Actions/.github/workflows/Parameters.yml@dev
|
uses: pyTooling/Actions/.github/workflows/Parameters.yml@dev
|
||||||
@@ -242,13 +242,11 @@ jobs:
|
|||||||
- UnitTestingParams
|
- UnitTestingParams
|
||||||
- UnitTesting
|
- UnitTesting
|
||||||
with:
|
with:
|
||||||
additional_merge_args: '-d "--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit"'
|
|
||||||
testsuite-summary-name: ${{ inputs.package_name }}
|
testsuite-summary-name: ${{ inputs.package_name }}
|
||||||
merged_junit_filename: ${{ needs.ConfigParams.outputs.unittest_merged_report_xml_filename }}
|
merged_junit_filename: ${{ needs.ConfigParams.outputs.unittest_merged_report_xml_filename }}
|
||||||
merged_junit_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
|
merged_junit_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
|
||||||
dorny: ${{ inputs.dorny }}
|
dorny: ${{ inputs.dorny }}
|
||||||
codecov: ${{ inputs.codecov }}
|
codecov: ${{ inputs.codecov }}
|
||||||
|
|
||||||
secrets:
|
secrets:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
11
.github/workflows/Parameters.yml
vendored
11
.github/workflows/Parameters.yml
vendored
@@ -95,6 +95,11 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: 'macos-14'
|
default: 'macos-14'
|
||||||
type: string
|
type: string
|
||||||
|
pipeline-delay:
|
||||||
|
description: 'Slow down this job, to delay the startup of the GitHub Action pipline.'
|
||||||
|
required: false
|
||||||
|
default: 0
|
||||||
|
type: number
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
python_version:
|
python_version:
|
||||||
@@ -121,6 +126,12 @@ jobs:
|
|||||||
params: ${{ steps.params.outputs.params }}
|
params: ${{ steps.params.outputs.params }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Generate a startup delay of ${{ inputs.pipeline-delay }} seconds
|
||||||
|
id: delay
|
||||||
|
if: inputs.pipeline-delay >= 0
|
||||||
|
run: |
|
||||||
|
sleep ${{ inputs.pipeline-delay }}
|
||||||
|
|
||||||
- name: Generate 'params' and 'python_jobs'
|
- name: Generate 'params' and 'python_jobs'
|
||||||
id: params
|
id: params
|
||||||
shell: python
|
shell: python
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ Code Coverage Report
|
|||||||
Code coverage report generated with `pytest <https://github.com/pytest-dev/pytest>`__ and `Coverage.py <https://github.com/nedbat/coveragepy/tree/master>`__.
|
Code coverage report generated with `pytest <https://github.com/pytest-dev/pytest>`__ and `Coverage.py <https://github.com/nedbat/coveragepy/tree/master>`__.
|
||||||
|
|
||||||
.. #report:code-coverage::
|
.. #report:code-coverage::
|
||||||
:packageid: src
|
:reportid: src
|
||||||
|
|||||||
Reference in New Issue
Block a user