Added ubuntu_image_version parameter.

This commit is contained in:
Patrick Lehmann
2024-11-03 08:41:51 +01:00
parent 1cef082753
commit b9b9b0b1d4
16 changed files with 81 additions and 16 deletions

View File

@@ -25,6 +25,11 @@ name: ArtifactCleanUp
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
package: package:
description: 'Artifacts to be removed on not tagged runs.' description: 'Artifacts to be removed on not tagged runs.'
required: true required: true
@@ -38,7 +43,7 @@ on:
jobs: jobs:
ArtifactCleanUp: ArtifactCleanUp:
name: 🗑️ Artifact Cleanup name: 🗑️ Artifact Cleanup
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: 🗑️ Delete package Artifacts - name: 🗑️ Delete package Artifacts

View File

@@ -24,6 +24,11 @@ name: Check Documentation
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
@@ -42,7 +47,7 @@ on:
jobs: jobs:
DocCoverage: DocCoverage:
name: 👀 Check documentation coverage name: 👀 Check documentation coverage
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@@ -25,6 +25,11 @@ name: Coverage Collection
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
@@ -63,7 +68,7 @@ jobs:
Coverage: Coverage:
name: 📈 Collect Coverage Data using Python ${{ inputs.python_version }} name: 📈 Collect Coverage Data using Python ${{ inputs.python_version }}
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository

View File

@@ -24,6 +24,11 @@ name: Intermediate Cleanup
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
sqlite_coverage_artifacts_prefix: sqlite_coverage_artifacts_prefix:
description: 'Prefix for SQLite coverage artifacts' description: 'Prefix for SQLite coverage artifacts'
required: false required: false
@@ -36,7 +41,7 @@ on:
jobs: jobs:
IntermediateCleanUp: IntermediateCleanUp:
name: 🗑️ Intermediate Artifact Cleanup name: 🗑️ Intermediate Artifact Cleanup
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: 🗑️ Delete SQLite coverage artifacts from matrix jobs - name: 🗑️ Delete SQLite coverage artifacts from matrix jobs
uses: geekyeggo/delete-artifact@v5 uses: geekyeggo/delete-artifact@v5

View File

@@ -24,6 +24,11 @@ name: LaTeX Documentation
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
document: document:
description: 'LaTeX root document without *.tex extension.' description: 'LaTeX root document without *.tex extension.'
required: true required: true
@@ -42,7 +47,7 @@ on:
jobs: jobs:
PDFDocumentation: PDFDocumentation:
name: 📓 Converting LaTeX Documentation to PDF name: 📓 Converting LaTeX Documentation to PDF
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: 📥 Download artifacts '${{ inputs.latex_artifact }}' from 'SphinxDocumentation' job - name: 📥 Download artifacts '${{ inputs.latex_artifact }}' from 'SphinxDocumentation' job
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4

View File

@@ -25,6 +25,11 @@ name: Package
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
@@ -44,7 +49,7 @@ jobs:
Package: Package:
name: 📦 Package in Source and Wheel Format name: 📦 Package in Source and Wheel Format
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository

View File

@@ -25,6 +25,11 @@ name: Parameters
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
name: name:
description: 'Name of the tool.' description: 'Name of the tool.'
required: true required: true
@@ -96,7 +101,7 @@ on:
jobs: jobs:
Parameters: Parameters:
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
outputs: outputs:
python_version: ${{ steps.params.outputs.python_version }} python_version: ${{ steps.params.outputs.python_version }}
python_jobs: ${{ steps.params.outputs.python_jobs }} python_jobs: ${{ steps.params.outputs.python_jobs }}

View File

@@ -24,6 +24,11 @@ name: Publish Code Coverage Results
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
coverage_config: coverage_config:
description: 'Path to the .coveragerc file. Use pyproject.toml by default.' description: 'Path to the .coveragerc file. Use pyproject.toml by default.'
required: false required: false
@@ -57,7 +62,7 @@ on:
jobs: jobs:
PublishCoverageResults: PublishCoverageResults:
name: 📊 Publish Code Coverage Results name: 📊 Publish Code Coverage Results
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
if: always() if: always()
steps: steps:

View File

@@ -25,6 +25,11 @@ name: Publish on PyPI
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
@@ -48,7 +53,7 @@ jobs:
PublishOnPyPI: PublishOnPyPI:
name: 🚀 Publish to PyPI name: 🚀 Publish to PyPI
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: 📥 Download artifacts '${{ inputs.artifact }}' from 'Package' job - name: 📥 Download artifacts '${{ inputs.artifact }}' from 'Package' job

View File

@@ -25,6 +25,11 @@ name: Publish Unit Test Results
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
merged_junit_artifact: merged_junit_artifact:
description: 'Name of the merged JUnit Test Summary artifact.' description: 'Name of the merged JUnit Test Summary artifact.'
required: false required: false
@@ -44,7 +49,7 @@ on:
jobs: jobs:
PublishTestResults: PublishTestResults:
name: 📊 Publish Test Results name: 📊 Publish Test Results
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
if: always() if: always()
steps: steps:

View File

@@ -25,6 +25,11 @@ name: Publish to GitHub Pages
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
doc: doc:
description: 'Name of the documentation artifact.' description: 'Name of the documentation artifact.'
required: true required: true
@@ -44,7 +49,7 @@ jobs:
PublishToGitHubPages: PublishToGitHubPages:
name: 📚 Publish to GH-Pages name: 📚 Publish to GH-Pages
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository

View File

@@ -29,7 +29,7 @@ jobs:
Release: Release:
name: 📝 Create 'Release Page' on GitHub name: 📝 Create 'Release Page' on GitHub
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: 🔁 Extract Git tag from GITHUB_REF - name: 🔁 Extract Git tag from GITHUB_REF

View File

@@ -25,6 +25,11 @@ name: Static Type Check
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
@@ -63,7 +68,7 @@ jobs:
StaticTypeCheck: StaticTypeCheck:
name: 👀 Check Static Typing using Python ${{ inputs.python_version }} name: 👀 Check Static Typing using Python ${{ inputs.python_version }}
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository

View File

@@ -25,6 +25,11 @@ name: Verify examples
on: on:
workflow_call: workflow_call:
inputs: inputs:
ubuntu_image_version:
description: 'Ubuntu image version.'
required: false
default: '24.04'
type: string
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
@@ -35,7 +40,7 @@ jobs:
VerifyDocs: VerifyDocs:
name: 👍 Verify example snippets using Python ${{ inputs.python_version }} name: 👍 Verify example snippets using Python ${{ inputs.python_version }}
runs-on: ubuntu-24.04 runs-on: "ubuntu-${ubuntu_image_version}"
steps: steps:
- name: ⏬ Checkout repository - name: ⏬ Checkout repository

View File

@@ -1,6 +1,6 @@
[build-system] [build-system]
requires = [ requires = [
"setuptools ~= 75.2", "setuptools ~= 75.3",
"wheel ~= 0.44", "wheel ~= 0.44",
"pyTooling ~= 7.0" "pyTooling ~= 7.0"
] ]

View File

@@ -5,7 +5,7 @@ Coverage ~= 7.6
# Test Runner # Test Runner
pytest ~= 8.3 pytest ~= 8.3
pytest-cov ~= 5.0 pytest-cov ~= 6.0
# Static Type Checking # Static Type Checking
mypy ~= 1.13 mypy ~= 1.13