mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 11:06:56 +08:00
Added ubuntu_image_version parameter.
This commit is contained in:
7
.github/workflows/ArtifactCleanUp.yml
vendored
7
.github/workflows/ArtifactCleanUp.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/CheckDocumentation.yml
vendored
7
.github/workflows/CheckDocumentation.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/CoverageCollection.yml
vendored
7
.github/workflows/CoverageCollection.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/IntermediateCleanUp.yml
vendored
7
.github/workflows/IntermediateCleanUp.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/LaTeXDocumentation.yml
vendored
7
.github/workflows/LaTeXDocumentation.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/Package.yml
vendored
7
.github/workflows/Package.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/Parameters.yml
vendored
7
.github/workflows/Parameters.yml
vendored
@@ -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 }}
|
||||||
|
|||||||
7
.github/workflows/PublishCoverageResults.yml
vendored
7
.github/workflows/PublishCoverageResults.yml
vendored
@@ -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:
|
||||||
|
|||||||
7
.github/workflows/PublishOnPyPI.yml
vendored
7
.github/workflows/PublishOnPyPI.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/PublishTestResults.yml
vendored
7
.github/workflows/PublishTestResults.yml
vendored
@@ -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:
|
||||||
|
|||||||
7
.github/workflows/PublishToGitHubPages.yml
vendored
7
.github/workflows/PublishToGitHubPages.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/Release.yml
vendored
2
.github/workflows/Release.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/StaticTypeCheck.yml
vendored
7
.github/workflows/StaticTypeCheck.yml
vendored
@@ -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
|
||||||
|
|||||||
7
.github/workflows/VerifyDocs.yml
vendored
7
.github/workflows/VerifyDocs.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user