mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Allow setting a pipeline startup delay.
This commit is contained in:
2
.github/workflows/CompletePipeline.yml
vendored
2
.github/workflows/CompletePipeline.yml
vendored
@@ -242,13 +242,11 @@ jobs:
|
||||
- UnitTestingParams
|
||||
- UnitTesting
|
||||
with:
|
||||
additional_merge_args: '-d "--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit"'
|
||||
testsuite-summary-name: ${{ inputs.package_name }}
|
||||
merged_junit_filename: ${{ needs.ConfigParams.outputs.unittest_merged_report_xml_filename }}
|
||||
merged_junit_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).unittesting_xml }}
|
||||
dorny: ${{ inputs.dorny }}
|
||||
codecov: ${{ inputs.codecov }}
|
||||
|
||||
secrets:
|
||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
|
||||
11
.github/workflows/Parameters.yml
vendored
11
.github/workflows/Parameters.yml
vendored
@@ -95,6 +95,11 @@ on:
|
||||
required: false
|
||||
default: 'macos-14'
|
||||
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:
|
||||
python_version:
|
||||
@@ -121,6 +126,12 @@ jobs:
|
||||
params: ${{ steps.params.outputs.params }}
|
||||
|
||||
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'
|
||||
id: params
|
||||
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>`__.
|
||||
|
||||
.. #report:code-coverage::
|
||||
:packageid: src
|
||||
:reportid: src
|
||||
|
||||
Reference in New Issue
Block a user