From cea83bc2aef5692b4ccf137bbce69e5a67e57300 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 5 Aug 2024 23:05:56 +0200 Subject: [PATCH] Write GitHub errors for documentation checks. --- .github/workflows/CheckDocumentation.yml | 4 ++-- .github/workflows/UnitTesting.yml | 4 +++- dist/requirements.txt | 2 +- pyproject.toml | 2 +- tests/python_jobs.py | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CheckDocumentation.yml b/.github/workflows/CheckDocumentation.yml index aca8af8..e88a6bd 100644 --- a/.github/workflows/CheckDocumentation.yml +++ b/.github/workflows/CheckDocumentation.yml @@ -59,9 +59,9 @@ jobs: - name: Run 'interrogate' Documentation Coverage Check continue-on-error: true run: | - interrogate -c pyproject.toml --fail-under=${{ inputs.fail_under }} + interrogate -c pyproject.toml --fail-under=${{ inputs.fail_under }} && echo "::error title=interrogate::Insufficient documentation quality (goal: ${{ inputs.fail_under }})" - name: Run 'docstr_coverage' Documentation Coverage Check continue-on-error: true run: | - docstr-coverage -v 2 --fail-under=${{ inputs.fail_under }} ${{ inputs.directory }} + docstr-coverage -v 2 --fail-under=${{ inputs.fail_under }} ${{ inputs.directory }} && echo "::error title=docstr-coverage::Insufficient documentation quality (goal: ${{ inputs.fail_under }})" diff --git a/.github/workflows/UnitTesting.yml b/.github/workflows/UnitTesting.yml index f9079d1..3f9b6d3 100644 --- a/.github/workflows/UnitTesting.yml +++ b/.github/workflows/UnitTesting.yml @@ -155,7 +155,9 @@ jobs: - name: 🔧 Install apt dependencies on Ubuntu if: matrix.system == 'ubuntu' && inputs.apt != '' - run: sudo apt-get install -y --no-install-recommends ${{ inputs.apt }} + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends ${{ inputs.apt }} # Compute Dependencies for MSYS2 steps diff --git a/dist/requirements.txt b/dist/requirements.txt index 71950fc..878e3e5 100644 --- a/dist/requirements.txt +++ b/dist/requirements.txt @@ -1,2 +1,2 @@ -wheel ~= 0.43 +wheel ~= 0.44 twine ~= 5.1 diff --git a/pyproject.toml b/pyproject.toml index 44b24c8..5d2e0ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ "setuptools ~= 72.1", - "wheel ~= 0.43", + "wheel ~= 0.44", "pyTooling ~= 6.5" ] build-backend = "setuptools.build_meta" diff --git a/tests/python_jobs.py b/tests/python_jobs.py index 36e892e..58ec322 100644 --- a/tests/python_jobs.py +++ b/tests/python_jobs.py @@ -68,7 +68,7 @@ data = { }, # Runner systems (runner images) supported by GitHub Actions "sys": { - "ubuntu": {"icon": "🐧", "runs-on": "ubuntu-2024.04", "shell": "bash", "name": "Linux (x86-64)"}, + "ubuntu": {"icon": "🐧", "runs-on": "ubuntu-24.04", "shell": "bash", "name": "Linux (x86-64)"}, "windows": {"icon": "🪟", "runs-on": "windows-latest", "shell": "pwsh", "name": "Windows (x86-64)"}, "macos": {"icon": "🍎", "runs-on": "macos-latest-large", "shell": "bash", "name": "macOS (x86-64)"}, "macos-arm": {"icon": "🍏", "runs-on": "macos-latest", "shell": "bash", "name": "macOS (arm64)"},