diff --git a/.github/workflows/Parameters.yml b/.github/workflows/Parameters.yml index ca02b74..82cb950 100644 --- a/.github/workflows/Parameters.yml +++ b/.github/workflows/Parameters.yml @@ -83,7 +83,7 @@ on: windows_image: description: 'The used GitHub Action image for Windows based jobs.' required: false - default: 'windows-latest' + default: 'windows-2022' type: string macos_intel_image: description: 'The used GitHub Action image for macOS (Intel x86-64) based jobs.' @@ -93,7 +93,7 @@ on: macos_arm_image: description: 'The used GitHub Action image for macOS (ARM aarch64) based jobs.' required: false - default: 'macos-latest' + default: 'macos-14' type: string outputs: diff --git a/.github/workflows/PublishTestResults.yml b/.github/workflows/PublishTestResults.yml index e7447d9..071ce4b 100644 --- a/.github/workflows/PublishTestResults.yml +++ b/.github/workflows/PublishTestResults.yml @@ -40,6 +40,11 @@ on: required: false default: '"--pytest=rewrite-dunder-init;reduce-depth:pytest.tests.unit"' type: string + publish: + description: 'Publish test report summary via Dorny Test-Reporter' + required: false + default: true + type: boolean report_title: description: 'Title of the summary report in the pipeline''s sidebar' required: false @@ -80,6 +85,7 @@ jobs: - name: 📊 Publish Unit Test Results uses: dorny/test-reporter@v1 + if: inputs.publish && inputs.report_title != '' with: name: ${{ inputs.report_title }} path: Unittesting.xml diff --git a/tests/pacman_packages.py b/tests/pacman_packages.py index c570554..bb329ef 100644 --- a/tests/pacman_packages.py +++ b/tests/pacman_packages.py @@ -8,7 +8,7 @@ print(f"Python: {version}") def loadRequirementsFile(requirementsFile: Path): requirements = [] - with requirementsFile.open("r") as file: + with requirementsFile.open("r", encoding="utf-8") as file: for line in file.readlines(): line = line.strip() if line.startswith("#") or line.startswith("https") or line == "": @@ -84,7 +84,7 @@ for dependency in dependencies: # Write jobs to special file github_output = Path(getenv("GITHUB_OUTPUT")) print(f"GITHUB_OUTPUT: {github_output}") -with github_output.open("a+") as f: +with github_output.open("a+", encoding="utf-8") as f: f.write(f"pacboy_packages={' '.join(pacboyPackages)}\n") print(f"GITHUB_OUTPUT:")