Skip to content

Commit 68357fd

Browse files
committed
Converted boolean parameters to string.
1 parent 4addce1 commit 68357fd

File tree

4 files changed

+26
-18
lines changed

4 files changed

+26
-18
lines changed

.github/workflows/CompletePipeline.yml

+1
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ jobs:
347347
needs:
348348
- Prepare
349349
- UnitTestingParams
350+
- Package
350351
- ReleasePage
351352
if: needs.Prepare.outputs.is_release_tag == 'true'
352353
with:

.github/workflows/PublishCoverageResults.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ on:
8686
codecov:
8787
description: 'Publish merged coverage report to Codecov.'
8888
required: false
89-
default: false
90-
type: boolean
89+
default: 'false'
90+
type: string
9191
codacy:
9292
description: 'Publish merged coverage report to Codacy.'
9393
required: false
94-
default: false
95-
type: boolean
94+
default: 'false'
95+
type: string
9696
secrets:
9797
CODECOV_TOKEN:
9898
description: 'Token to push result to Codecov.'
@@ -201,7 +201,7 @@ jobs:
201201
- name: 📊 Publish code coverage at CodeCov
202202
uses: codecov/codecov-action@v5
203203
id: codecov
204-
if: inputs.codecov
204+
if: inputs.codecov == 'true'
205205
continue-on-error: true
206206
with:
207207
token: ${{ secrets.CODECOV_TOKEN }}
@@ -214,7 +214,7 @@ jobs:
214214
- name: 📉 Publish code coverage at Codacy
215215
uses: codacy/codacy-coverage-reporter-action@v1
216216
id: codacy
217-
if: inputs.codacy
217+
if: inputs.codacy == 'true'
218218
continue-on-error: true
219219
with:
220220
project-token: ${{ secrets.CODACY_TOKEN }}
@@ -223,8 +223,12 @@ jobs:
223223
- name: Generate error messages
224224
run: |
225225
if [[ "${{ steps.codecov.outcome }}" == "failure" ]]; then
226-
printf "::error title=%s::%s\n" "Codecov" "Failed to publish code coverage results."
226+
printf "::error title=%s::%s\n" "Publish Code Coverage Results / Codecov" "Failed to publish code coverage results."
227+
else
228+
printf "Codecov: No errors to report."
227229
fi
228230
if [[ "${{ steps.codacy.outcome }}" == "failure" ]]; then
229-
printf "::error title=%s::%s\n" "Codacy" "Failed to publish code coverage results."
231+
printf "::error title=%s::%s\n" "Publish Code Coverage Results / Codacy" "Failed to publish code coverage results."
232+
else
233+
printf "Codacy: No errors to report."
230234
fi

.github/workflows/PublishTestResults.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ on:
5757
publish:
5858
description: 'Publish test report summary via Dorny Test-Reporter'
5959
required: false
60-
default: true
61-
type: boolean
60+
default: 'true'
61+
type: string
6262
report_title:
6363
description: 'Title of the summary report in the pipeline''s sidebar'
6464
required: false
@@ -67,13 +67,13 @@ on:
6767
dorny:
6868
description: 'Publish merged unittest results via Dorny Test-Reporter.'
6969
required: false
70-
default: true
71-
type: boolean
70+
default: 'true'
71+
type: string
7272
codecov:
7373
description: 'Publish merged unittest results to Codecov.'
7474
required: false
75-
default: true
76-
type: boolean
75+
default: 'false'
76+
type: string
7777
codecov_flags:
7878
description: 'Flags applied to the upload to Codecov'
7979
required: false
@@ -122,7 +122,7 @@ jobs:
122122
123123
- name: 📊 Publish Unit Test Results
124124
uses: dorny/test-reporter@v2
125-
if: (inputs.dorny || inputs.publish) && inputs.report_title != ''
125+
if: ( inputs.dorny == 'true' || inputs.publish == 'true' ) && inputs.report_title != ''
126126
with:
127127
name: ${{ inputs.report_title }}
128128
path: ${{ inputs.merged_junit_filename }}
@@ -131,7 +131,8 @@ jobs:
131131
- name: 📊 Publish unittest results at CodeCov
132132
uses: codecov/test-results-action@v1
133133
id: codecov
134-
if: inputs.codecov
134+
if: inputs.codecov == 'true'
135+
continue-on-error: true
135136
with:
136137
token: ${{ secrets.CODECOV_TOKEN }}
137138
disable_search: true
@@ -142,7 +143,9 @@ jobs:
142143
- name: Generate error messages
143144
run: |
144145
if [[ "${{ steps.codecov.outcome }}" == "failure" ]]; then
145-
printf "::error title=%s::%s\n" "Codecov" "Failed to publish unittest results."
146+
printf "::error title=%s::%s\n" "Publish Unit Test Results / Codecov" "Failed to publish unittest results."
147+
else
148+
printf "Codecov: No errors to report."
146149
fi
147150
148151
- name: 📤 Upload merged 'JUnit Test Summary' artifact

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools ~= 79.0",
3+
"setuptools >= 80.0",
44
"wheel ~= 0.45",
55
"pyTooling ~= 8.4"
66
]

0 commit comments

Comments
 (0)