From 68357fddd8213f705d56a2087d05138396bb8e05 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Sat, 3 May 2025 18:31:39 +0200 Subject: [PATCH] Converted boolean parameters to string. --- .github/workflows/CompletePipeline.yml | 1 + .github/workflows/PublishCoverageResults.yml | 20 +++++++++++-------- .github/workflows/PublishTestResults.yml | 21 +++++++++++--------- pyproject.toml | 2 +- 4 files changed, 26 insertions(+), 18 deletions(-) diff --git a/.github/workflows/CompletePipeline.yml b/.github/workflows/CompletePipeline.yml index be24c0c..4e30c57 100644 --- a/.github/workflows/CompletePipeline.yml +++ b/.github/workflows/CompletePipeline.yml @@ -347,6 +347,7 @@ jobs: needs: - Prepare - UnitTestingParams + - Package - ReleasePage if: needs.Prepare.outputs.is_release_tag == 'true' with: diff --git a/.github/workflows/PublishCoverageResults.yml b/.github/workflows/PublishCoverageResults.yml index 92ee61e..0c30530 100644 --- a/.github/workflows/PublishCoverageResults.yml +++ b/.github/workflows/PublishCoverageResults.yml @@ -86,13 +86,13 @@ on: codecov: description: 'Publish merged coverage report to Codecov.' required: false - default: false - type: boolean + default: 'false' + type: string codacy: description: 'Publish merged coverage report to Codacy.' required: false - default: false - type: boolean + default: 'false' + type: string secrets: CODECOV_TOKEN: description: 'Token to push result to Codecov.' @@ -201,7 +201,7 @@ jobs: - name: 📊 Publish code coverage at CodeCov uses: codecov/codecov-action@v5 id: codecov - if: inputs.codecov + if: inputs.codecov == 'true' continue-on-error: true with: token: ${{ secrets.CODECOV_TOKEN }} @@ -214,7 +214,7 @@ jobs: - name: 📉 Publish code coverage at Codacy uses: codacy/codacy-coverage-reporter-action@v1 id: codacy - if: inputs.codacy + if: inputs.codacy == 'true' continue-on-error: true with: project-token: ${{ secrets.CODACY_TOKEN }} @@ -223,8 +223,12 @@ jobs: - name: Generate error messages run: | 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 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 diff --git a/.github/workflows/PublishTestResults.yml b/.github/workflows/PublishTestResults.yml index 97ab613..e4607db 100644 --- a/.github/workflows/PublishTestResults.yml +++ b/.github/workflows/PublishTestResults.yml @@ -57,8 +57,8 @@ on: publish: description: 'Publish test report summary via Dorny Test-Reporter' required: false - default: true - type: boolean + default: 'true' + type: string report_title: description: 'Title of the summary report in the pipeline''s sidebar' required: false @@ -67,13 +67,13 @@ on: dorny: description: 'Publish merged unittest results via Dorny Test-Reporter.' required: false - default: true - type: boolean + default: 'true' + type: string codecov: description: 'Publish merged unittest results to Codecov.' required: false - default: true - type: boolean + default: 'false' + type: string codecov_flags: description: 'Flags applied to the upload to Codecov' required: false @@ -122,7 +122,7 @@ jobs: - name: 📊 Publish Unit Test Results uses: dorny/test-reporter@v2 - if: (inputs.dorny || inputs.publish) && inputs.report_title != '' + if: ( inputs.dorny == 'true' || inputs.publish == 'true' ) && inputs.report_title != '' with: name: ${{ inputs.report_title }} path: ${{ inputs.merged_junit_filename }} @@ -131,7 +131,8 @@ jobs: - name: 📊 Publish unittest results at CodeCov uses: codecov/test-results-action@v1 id: codecov - if: inputs.codecov + if: inputs.codecov == 'true' + continue-on-error: true with: token: ${{ secrets.CODECOV_TOKEN }} disable_search: true @@ -142,7 +143,9 @@ jobs: - name: Generate error messages run: | 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 - name: 📤 Upload merged 'JUnit Test Summary' artifact diff --git a/pyproject.toml b/pyproject.toml index eba19e1..11fc317 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] requires = [ - "setuptools ~= 79.0", + "setuptools >= 80.0", "wheel ~= 0.45", "pyTooling ~= 8.4" ]