mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Converted boolean parameters to string.
This commit is contained in:
1
.github/workflows/CompletePipeline.yml
vendored
1
.github/workflows/CompletePipeline.yml
vendored
@@ -347,6 +347,7 @@ jobs:
|
|||||||
needs:
|
needs:
|
||||||
- Prepare
|
- Prepare
|
||||||
- UnitTestingParams
|
- UnitTestingParams
|
||||||
|
- Package
|
||||||
- ReleasePage
|
- ReleasePage
|
||||||
if: needs.Prepare.outputs.is_release_tag == 'true'
|
if: needs.Prepare.outputs.is_release_tag == 'true'
|
||||||
with:
|
with:
|
||||||
|
|||||||
20
.github/workflows/PublishCoverageResults.yml
vendored
20
.github/workflows/PublishCoverageResults.yml
vendored
@@ -86,13 +86,13 @@ on:
|
|||||||
codecov:
|
codecov:
|
||||||
description: 'Publish merged coverage report to Codecov.'
|
description: 'Publish merged coverage report to Codecov.'
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: 'false'
|
||||||
type: boolean
|
type: string
|
||||||
codacy:
|
codacy:
|
||||||
description: 'Publish merged coverage report to Codacy.'
|
description: 'Publish merged coverage report to Codacy.'
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: 'false'
|
||||||
type: boolean
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
CODECOV_TOKEN:
|
CODECOV_TOKEN:
|
||||||
description: 'Token to push result to Codecov.'
|
description: 'Token to push result to Codecov.'
|
||||||
@@ -201,7 +201,7 @@ jobs:
|
|||||||
- name: 📊 Publish code coverage at CodeCov
|
- name: 📊 Publish code coverage at CodeCov
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
id: codecov
|
id: codecov
|
||||||
if: inputs.codecov
|
if: inputs.codecov == 'true'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
@@ -214,7 +214,7 @@ jobs:
|
|||||||
- name: 📉 Publish code coverage at Codacy
|
- name: 📉 Publish code coverage at Codacy
|
||||||
uses: codacy/codacy-coverage-reporter-action@v1
|
uses: codacy/codacy-coverage-reporter-action@v1
|
||||||
id: codacy
|
id: codacy
|
||||||
if: inputs.codacy
|
if: inputs.codacy == 'true'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_TOKEN }}
|
project-token: ${{ secrets.CODACY_TOKEN }}
|
||||||
@@ -223,8 +223,12 @@ jobs:
|
|||||||
- name: Generate error messages
|
- name: Generate error messages
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ steps.codecov.outcome }}" == "failure" ]]; then
|
if [[ "${{ steps.codecov.outcome }}" == "failure" ]]; then
|
||||||
printf "::error title=%s::%s\n" "Codecov" "Failed to publish code coverage results."
|
printf "::error title=%s::%s\n" "Publish Code Coverage Results / Codecov" "Failed to publish code coverage results."
|
||||||
|
else
|
||||||
|
printf "Codecov: No errors to report."
|
||||||
fi
|
fi
|
||||||
if [[ "${{ steps.codacy.outcome }}" == "failure" ]]; then
|
if [[ "${{ steps.codacy.outcome }}" == "failure" ]]; then
|
||||||
printf "::error title=%s::%s\n" "Codacy" "Failed to publish code coverage results."
|
printf "::error title=%s::%s\n" "Publish Code Coverage Results / Codacy" "Failed to publish code coverage results."
|
||||||
|
else
|
||||||
|
printf "Codacy: No errors to report."
|
||||||
fi
|
fi
|
||||||
|
|||||||
21
.github/workflows/PublishTestResults.yml
vendored
21
.github/workflows/PublishTestResults.yml
vendored
@@ -57,8 +57,8 @@ on:
|
|||||||
publish:
|
publish:
|
||||||
description: 'Publish test report summary via Dorny Test-Reporter'
|
description: 'Publish test report summary via Dorny Test-Reporter'
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: 'true'
|
||||||
type: boolean
|
type: string
|
||||||
report_title:
|
report_title:
|
||||||
description: 'Title of the summary report in the pipeline''s sidebar'
|
description: 'Title of the summary report in the pipeline''s sidebar'
|
||||||
required: false
|
required: false
|
||||||
@@ -67,13 +67,13 @@ on:
|
|||||||
dorny:
|
dorny:
|
||||||
description: 'Publish merged unittest results via Dorny Test-Reporter.'
|
description: 'Publish merged unittest results via Dorny Test-Reporter.'
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: 'true'
|
||||||
type: boolean
|
type: string
|
||||||
codecov:
|
codecov:
|
||||||
description: 'Publish merged unittest results to Codecov.'
|
description: 'Publish merged unittest results to Codecov.'
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: 'false'
|
||||||
type: boolean
|
type: string
|
||||||
codecov_flags:
|
codecov_flags:
|
||||||
description: 'Flags applied to the upload to Codecov'
|
description: 'Flags applied to the upload to Codecov'
|
||||||
required: false
|
required: false
|
||||||
@@ -122,7 +122,7 @@ jobs:
|
|||||||
|
|
||||||
- name: 📊 Publish Unit Test Results
|
- name: 📊 Publish Unit Test Results
|
||||||
uses: dorny/test-reporter@v2
|
uses: dorny/test-reporter@v2
|
||||||
if: (inputs.dorny || inputs.publish) && inputs.report_title != ''
|
if: ( inputs.dorny == 'true' || inputs.publish == 'true' ) && inputs.report_title != ''
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.report_title }}
|
name: ${{ inputs.report_title }}
|
||||||
path: ${{ inputs.merged_junit_filename }}
|
path: ${{ inputs.merged_junit_filename }}
|
||||||
@@ -131,7 +131,8 @@ jobs:
|
|||||||
- name: 📊 Publish unittest results at CodeCov
|
- name: 📊 Publish unittest results at CodeCov
|
||||||
uses: codecov/test-results-action@v1
|
uses: codecov/test-results-action@v1
|
||||||
id: codecov
|
id: codecov
|
||||||
if: inputs.codecov
|
if: inputs.codecov == 'true'
|
||||||
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
disable_search: true
|
disable_search: true
|
||||||
@@ -142,7 +143,9 @@ jobs:
|
|||||||
- name: Generate error messages
|
- name: Generate error messages
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ steps.codecov.outcome }}" == "failure" ]]; then
|
if [[ "${{ steps.codecov.outcome }}" == "failure" ]]; then
|
||||||
printf "::error title=%s::%s\n" "Codecov" "Failed to publish unittest results."
|
printf "::error title=%s::%s\n" "Publish Unit Test Results / Codecov" "Failed to publish unittest results."
|
||||||
|
else
|
||||||
|
printf "Codecov: No errors to report."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: 📤 Upload merged 'JUnit Test Summary' artifact
|
- name: 📤 Upload merged 'JUnit Test Summary' artifact
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = [
|
requires = [
|
||||||
"setuptools ~= 79.0",
|
"setuptools >= 80.0",
|
||||||
"wheel ~= 0.45",
|
"wheel ~= 0.45",
|
||||||
"pyTooling ~= 8.4"
|
"pyTooling ~= 8.4"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user