From 13c1a56f92bf785719a30ba95aac843af93c506d Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 30 Jul 2024 02:06:42 +0200 Subject: [PATCH] Upgrade to Ubuntu 2024.04 as GitHub is stuck with Ubuntu-latest at 2022.04. --- .github/workflows/ArtifactCleanUp.yml | 2 +- .github/workflows/BuildTheDocs.yml | 2 +- .github/workflows/CheckDocumentation.yml | 2 +- .github/workflows/CoverageCollection.yml | 2 +- .github/workflows/IntermediateCleanUp.yml | 2 +- .github/workflows/LaTeXDocumentation.yml | 2 +- .github/workflows/Package.yml | 2 +- .github/workflows/Parameters.yml | 4 ++-- .github/workflows/PublishCoverageResults.yml | 2 +- .github/workflows/PublishOnPyPI.yml | 2 +- .github/workflows/PublishTestResults.yml | 2 +- .github/workflows/PublishToGitHubPages.yml | 2 +- .github/workflows/Release.yml | 2 +- .github/workflows/SphinxDocumentation.yml | 2 +- .github/workflows/StaticTypeCheck.yml | 2 +- .github/workflows/TestReleaser.yml | 6 +++--- .github/workflows/VerifyDocs.yml | 2 +- .github/workflows/_Checking_ArtifactCleanup.yml | 2 +- .github/workflows/_Checking_Parameters.yml | 2 +- doc/Action/Releaser.rst | 4 ++-- doc/Instantiation.rst | 2 +- releaser/README.md | 4 ++-- tests/python_jobs.py | 2 +- 23 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ArtifactCleanUp.yml b/.github/workflows/ArtifactCleanUp.yml index abfb8d9..97929fb 100644 --- a/.github/workflows/ArtifactCleanUp.yml +++ b/.github/workflows/ArtifactCleanUp.yml @@ -38,7 +38,7 @@ on: jobs: ArtifactCleanUp: name: 🗑️ Artifact Cleanup - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 🗑️ Delete package Artifacts diff --git a/.github/workflows/BuildTheDocs.yml b/.github/workflows/BuildTheDocs.yml index 44b13ea..a8d72c1 100644 --- a/.github/workflows/BuildTheDocs.yml +++ b/.github/workflows/BuildTheDocs.yml @@ -34,7 +34,7 @@ on: jobs: BuildTheDocs: name: 📓 Run BuildTheDocs - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository diff --git a/.github/workflows/CheckDocumentation.yml b/.github/workflows/CheckDocumentation.yml index a2a11b0..aca8af8 100644 --- a/.github/workflows/CheckDocumentation.yml +++ b/.github/workflows/CheckDocumentation.yml @@ -42,7 +42,7 @@ on: jobs: DocCoverage: name: 👀 Check documentation coverage - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository uses: actions/checkout@v4 diff --git a/.github/workflows/CoverageCollection.yml b/.github/workflows/CoverageCollection.yml index 2922e25..2d0204f 100644 --- a/.github/workflows/CoverageCollection.yml +++ b/.github/workflows/CoverageCollection.yml @@ -63,7 +63,7 @@ jobs: Coverage: name: 📈 Collect Coverage Data using Python ${{ inputs.python_version }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository diff --git a/.github/workflows/IntermediateCleanUp.yml b/.github/workflows/IntermediateCleanUp.yml index 927a3d3..d087ea6 100644 --- a/.github/workflows/IntermediateCleanUp.yml +++ b/.github/workflows/IntermediateCleanUp.yml @@ -36,7 +36,7 @@ on: jobs: IntermediateCleanUp: name: 🗑️ Intermediate Artifact Cleanup - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 🗑️ Delete SQLite coverage artifacts from matrix jobs uses: geekyeggo/delete-artifact@v5 diff --git a/.github/workflows/LaTeXDocumentation.yml b/.github/workflows/LaTeXDocumentation.yml index 0c4d375..675ae04 100644 --- a/.github/workflows/LaTeXDocumentation.yml +++ b/.github/workflows/LaTeXDocumentation.yml @@ -42,7 +42,7 @@ on: jobs: PDFDocumentation: name: 📓 Converting LaTeX Documentation to PDF - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 📥 Download artifacts '${{ inputs.latex_artifact }}' from 'SphinxDocumentation' job uses: actions/download-artifact@v4 diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index 5378fbc..b18ad87 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -44,7 +44,7 @@ jobs: Package: name: 📦 Package in Source and Wheel Format - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository diff --git a/.github/workflows/Parameters.yml b/.github/workflows/Parameters.yml index 2df2292..8c6a6ed 100644 --- a/.github/workflows/Parameters.yml +++ b/.github/workflows/Parameters.yml @@ -76,7 +76,7 @@ on: jobs: Parameters: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 outputs: python_version: ${{ steps.params.outputs.python_version }} python_jobs: ${{ steps.params.outputs.python_jobs }} @@ -157,7 +157,7 @@ jobs: }, # Runner systems (runner images) supported by GitHub Actions "sys": { - "ubuntu": { "icon": "🐧", "runs-on": "ubuntu-latest", "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", "shell": "bash", "name": "MacOS (x86-64)" }, }, diff --git a/.github/workflows/PublishCoverageResults.yml b/.github/workflows/PublishCoverageResults.yml index b45c1de..ae1074a 100644 --- a/.github/workflows/PublishCoverageResults.yml +++ b/.github/workflows/PublishCoverageResults.yml @@ -57,7 +57,7 @@ on: jobs: PublishCoverageResults: name: 📊 Publish Code Coverage Results - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: always() steps: diff --git a/.github/workflows/PublishOnPyPI.yml b/.github/workflows/PublishOnPyPI.yml index 890595c..f108670 100644 --- a/.github/workflows/PublishOnPyPI.yml +++ b/.github/workflows/PublishOnPyPI.yml @@ -48,7 +48,7 @@ jobs: PublishOnPyPI: name: 🚀 Publish to PyPI - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 📥 Download artifacts '${{ inputs.artifact }}' from 'Package' job diff --git a/.github/workflows/PublishTestResults.yml b/.github/workflows/PublishTestResults.yml index 5e3c2a1..3816063 100644 --- a/.github/workflows/PublishTestResults.yml +++ b/.github/workflows/PublishTestResults.yml @@ -39,7 +39,7 @@ on: jobs: PublishTestResults: name: 📊 Publish Test Results - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: always() steps: diff --git a/.github/workflows/PublishToGitHubPages.yml b/.github/workflows/PublishToGitHubPages.yml index 351eb02..325512b 100644 --- a/.github/workflows/PublishToGitHubPages.yml +++ b/.github/workflows/PublishToGitHubPages.yml @@ -44,7 +44,7 @@ jobs: PublishToGitHubPages: name: 📚 Publish to GH-Pages - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index cc3d493..47ac237 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -29,7 +29,7 @@ jobs: Release: name: 📝 Create 'Release Page' on GitHub - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 🔁 Extract Git tag from GITHUB_REF diff --git a/.github/workflows/SphinxDocumentation.yml b/.github/workflows/SphinxDocumentation.yml index 34f9d48..d196dbf 100644 --- a/.github/workflows/SphinxDocumentation.yml +++ b/.github/workflows/SphinxDocumentation.yml @@ -73,7 +73,7 @@ on: jobs: Sphinx: name: 📓 Documentation generation using Sphinx and Python ${{ inputs.python_version }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository diff --git a/.github/workflows/StaticTypeCheck.yml b/.github/workflows/StaticTypeCheck.yml index eef16f3..c37d64f 100644 --- a/.github/workflows/StaticTypeCheck.yml +++ b/.github/workflows/StaticTypeCheck.yml @@ -63,7 +63,7 @@ jobs: StaticTypeCheck: name: 👀 Check Static Typing using Python ${{ inputs.python_version }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository diff --git a/.github/workflows/TestReleaser.yml b/.github/workflows/TestReleaser.yml index 5ee5787..8b7056a 100644 --- a/.github/workflows/TestReleaser.yml +++ b/.github/workflows/TestReleaser.yml @@ -41,7 +41,7 @@ jobs: Image: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: DOCKER_BUILDKIT: 1 steps: @@ -60,7 +60,7 @@ jobs: Composite: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -120,7 +120,7 @@ jobs: needs: - Image - Composite - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/VerifyDocs.yml b/.github/workflows/VerifyDocs.yml index 4b8d772..574f9c5 100644 --- a/.github/workflows/VerifyDocs.yml +++ b/.github/workflows/VerifyDocs.yml @@ -35,7 +35,7 @@ jobs: VerifyDocs: name: 👍 Verify example snippets using Python ${{ inputs.python_version }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: ⏬ Checkout repository diff --git a/.github/workflows/_Checking_ArtifactCleanup.yml b/.github/workflows/_Checking_ArtifactCleanup.yml index b117324..3d00135 100644 --- a/.github/workflows/_Checking_ArtifactCleanup.yml +++ b/.github/workflows/_Checking_ArtifactCleanup.yml @@ -36,7 +36,7 @@ jobs: name: Package generation needs: - Params - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Package creation run: echo "Package" >> package.txt diff --git a/.github/workflows/_Checking_Parameters.yml b/.github/workflows/_Checking_Parameters.yml index 17c339c..874a0b8 100644 --- a/.github/workflows/_Checking_Parameters.yml +++ b/.github/workflows/_Checking_Parameters.yml @@ -64,7 +64,7 @@ jobs: - Params_Exclude - Params_Disable - Params_All - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 defaults: run: shell: python diff --git a/doc/Action/Releaser.rst b/doc/Action/Releaser.rst index d91b04f..c53c99b 100644 --- a/doc/Action/Releaser.rst +++ b/doc/Action/Releaser.rst @@ -81,7 +81,7 @@ The following block shows a minimal YAML workflow file: jobs: mwe: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: # Clone repository @@ -171,7 +171,7 @@ For prototyping purposes, the following job might be useful: Release: name: '📦 Release' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - ... if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/tags/'>`__) diff --git a/doc/Instantiation.rst b/doc/Instantiation.rst index 254b2d8..3b18faf 100644 --- a/doc/Instantiation.rst +++ b/doc/Instantiation.rst @@ -76,7 +76,7 @@ Documentation Only (Sphinx) needs: - BuildTheDocs - PublishToGitHubPages - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: 🗑️ Delete artifacts diff --git a/releaser/README.md b/releaser/README.md index 33a78cc..3d09e67 100644 --- a/releaser/README.md +++ b/releaser/README.md @@ -75,7 +75,7 @@ on: jobs: mwe: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: # Clone repository @@ -156,7 +156,7 @@ For prototyping purposes, the following job might be useful: ```yml Release: name: '📦 Release' - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - ... if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || contains(github.ref, 'refs/tags/')) diff --git a/tests/python_jobs.py b/tests/python_jobs.py index d82d5a3..526a7f7 100644 --- a/tests/python_jobs.py +++ b/tests/python_jobs.py @@ -67,7 +67,7 @@ data = { }, # Runner systems (runner images) supported by GitHub Actions "sys": { - "ubuntu": {"icon": "🐧", "runs-on": "ubuntu-latest", "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", "shell": "bash", "name": "MacOS (x86-64)"}, },