Compare commits

..

12 Commits

Author SHA1 Message Date
Patrick Lehmann
ec73d6bc41 v6.5.0 2025-10-19 01:22:16 +02:00
Patrick Lehmann
10c10d9566 Updated documentation accordingly. 2025-10-19 01:04:46 +02:00
Patrick Lehmann
29b1e2d8eb Fixed artifact name checking. 2025-10-19 00:41:50 +02:00
Patrick Lehmann
0edc7c4ca7 Set Python alpha version to 3.15 2025-10-19 00:24:32 +02:00
Patrick Lehmann
77ed5bb343 Check job matrix. 2025-10-19 00:20:07 +02:00
Patrick Lehmann
6432741888 Reduced code duplications when checking job-matrix and artifact names by using local Actions. 2025-10-18 23:33:24 +02:00
Patrick Lehmann
7e6bb82ae8 Removed Python 3.9 from preselected list of Python versions and added Python 3.14. 2025-10-18 22:20:06 +02:00
Patrick Lehmann
cf7a98730e Activated bandit and pylint. [skip ci] 2025-10-05 15:37:39 +02:00
Patrick Lehmann
fb36154250 v6.4.0 2025-10-05 15:29:38 +02:00
Patrick Lehmann
fc08112235 Added parameters to enable bandit and pylint checks. 2025-10-05 15:14:39 +02:00
Patrick Lehmann
953d0698c9 Fixed wheel package installations on Windows. 2025-10-04 23:48:00 +02:00
Patrick Lehmann
05e5d1f86c Improved pyproject.toml reading if settings don't exist. 2025-10-04 21:30:24 +02:00
35 changed files with 426 additions and 556 deletions

View File

@@ -0,0 +1,75 @@
name: Check artifact names
branding:
icon: check-square
color: green
description: Check generated artifact names.
author: Patrick Lehmann (@Paebbels)
inputs:
prefix:
description:
type: string
required: true
generated-names:
description:
type: string
required: true
runs:
using: composite
steps:
- name: Install dependencies
shell: bash
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Check artifact names
id: check
shell: python
run: |
from json import loads as json_loads
from sys import exit
from pyTooling.Common import zipdicts
actualArtifactNames = json_loads("""${{ inputs.generated-names }}""".replace("'", '"'))
expectedName = "${{ inputs.prefix }}"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
errors = 0
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"❌ Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
print("✅ Number of 'artifact_names' as expected.")
print("Checking artifact names ...")
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f" ❌ Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
else:
print(f" ☑ Artifact name as expected: {key} ⇢ {actual}.")
if errors == 0:
print("✅ All checks PASSED.")
else:
print(f"❌ Counted {errors} errors.")
exit(errors)

View File

@@ -0,0 +1,92 @@
name: Check job matrix
branding:
icon: check-square
color: green
description: Check generated job matrix.
author: Patrick Lehmann (@Paebbels)
inputs:
expected-default-version:
description:
type: string
required: true
expected-python-versions:
description:
type: string
required: true
expected-systems:
description:
type: string
required: true
expected-exclude-jobs:
description:
type: string
required: true
expected-include-jobs:
description:
type: string
required: true
generated-default-version:
description:
type: string
required: true
generated-jobmatrix:
description:
type: string
required: true
runs:
using: composite
steps:
- name: Check parameters
id: check
shell: python
run: |
from json import loads as json_loads
from sys import exit
actualPythonVersion = """${{ inputs.generated-default-version }}"""
actualPythonJobs = json_loads("""${{ inputs.generated-jobmatrix }}""".replace("'", '"'))
expectedPythonVersion = """${{ inputs.expected-default-version }}"""
expectedPythons = json_loads("""${{ inputs.expected-python-versions }}""".replace("'", '"'))
expectedSystems = json_loads("""${{ inputs.expected-systems }}""".replace("'", '"'))
excludedJobs = json_loads("""${{ inputs.expected-exclude-jobs }}""".replace("'", '"'))
includeJobs = json_loads("""${{ inputs.expected-include-jobs }}""".replace("'", '"'))
expectedJobs = sorted([f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs)
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"❌ Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
else:
print("✅ Number of 'python_jobs' as expected.")
print("Checking job combinations ...")
actualJobs = sorted([f"{job['system'] if job['system'] != 'msys2' else job['runtime'].lower()}:{job['python']}" for job in actualPythonJobs])
for actual, expected in zip(actualJobs, expectedJobs):
if actual != expected:
print(f" ❌ Job does not match: {actual} != {expected}.")
errors += 1
else:
print(f" ☑ Job as expected: {actual}.")
if errors == 0:
print("✅ All checks PASSED.")
else:
print(f"❌ Counted {errors} errors.")
exit(errors)

View File

@@ -220,11 +220,16 @@ jobs:
python -m pip install --disable-pip-version-check ${{ inputs.requirements }} python -m pip install --disable-pip-version-check ${{ inputs.requirements }}
fi fi
- name: 🔧 Install wheel from artifact - name: 🔧 Install wheel from artifact (Ubuntu/macOS)
if: ( matrix.system != 'windows' && matrix.system != 'windows-arm' )
run: | run: |
ls -l install
python -m pip install --disable-pip-version-check -U install/*.whl python -m pip install --disable-pip-version-check -U install/*.whl
- name: 🔧 Install wheel from artifact (Windows)
if: ( matrix.system == 'windows' || matrix.system == 'windows-arm' )
run: |
python -m pip install -v --disable-pip-version-check (Get-Item .\install\*.whl).FullName
- name: ✅ Run application tests (Ubuntu/macOS) - name: ✅ Run application tests (Ubuntu/macOS)
if: ( matrix.system != 'windows' && matrix.system != 'windows-arm' ) if: ( matrix.system != 'windows' && matrix.system != 'windows-arm' )
run: | run: |

View File

@@ -32,7 +32,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
package_directory: package_directory:
description: 'The package''s directory' description: 'The package''s directory'

View File

@@ -32,7 +32,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
directory: directory:
description: 'Source code directory to check.' description: 'Source code directory to check.'

View File

@@ -36,12 +36,12 @@ on:
unittest_python_version: unittest_python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
unittest_python_version_list: unittest_python_version_list:
description: 'Space separated list of Python versions to run tests with.' description: 'Space separated list of Python versions to run tests with.'
required: false required: false
default: '3.9 3.10 3.11 3.12 3.13' default: '3.10 3.11 3.12 3.13 3.14'
type: string type: string
unittest_system_list: unittest_system_list:
description: 'Space separated list of systems to run tests on.' description: 'Space separated list of systems to run tests on.'
@@ -66,7 +66,7 @@ on:
apptest_python_version: apptest_python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
apptest_python_version_list: apptest_python_version_list:
description: 'Space separated list of Python versions to run tests with.' description: 'Space separated list of Python versions to run tests with.'
@@ -93,6 +93,16 @@ on:
required: false required: false
default: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11' default: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11'
type: string type: string
bandit:
description: 'Run Static Application Security Testing (SAST) using Bandit.'
required: false
default: 'false'
type: string
pylint:
description: 'Run Python linting using pylint.'
required: false
default: 'false'
type: string
codecov: codecov:
description: 'Publish merged coverage and unittest reports to Codecov.' description: 'Publish merged coverage and unittest reports to Codecov.'
required: false required: false
@@ -205,6 +215,8 @@ jobs:
with: with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }} python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }} package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }}
bandit: ${{ inputs.bandit }}
pylint: ${{ inputs.pylint }}
artifact: CodeQuality artifact: CodeQuality
DocCoverage: DocCoverage:
@@ -219,7 +231,6 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Package.yml@main uses: pyTooling/Actions/.github/workflows/Package.yml@main
needs: needs:
- UnitTestingParams - UnitTestingParams
# - UnitTesting
with: with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }} python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}

View File

@@ -32,7 +32,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string 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.'
@@ -114,7 +114,7 @@ jobs:
coverageRC = "${{ inputs.coverage_config }}".strip() coverageRC = "${{ inputs.coverage_config }}".strip()
typingCoberturaFile = Path("report/typing/cobertura.xml") typingCoberturaFile = Path("report/typing/cobertura.xml")
typingJUnitFile = Path("report/typing/StaticTypingSummary.xml") typingJUnitFile = Path("report/typing/StaticTypingSummary.xml")
typingHTMLDirectory = Path("htmlmypy") typingHTMLDirectory = Path("report/typing/html")
# Read output paths from 'pyproject.toml' file # Read output paths from 'pyproject.toml' file
if coverageRC == "pyproject.toml": if coverageRC == "pyproject.toml":
@@ -123,14 +123,34 @@ jobs:
with pyProjectFile.open("rb") as file: with pyProjectFile.open("rb") as file:
pyProjectSettings = tomli_load(file) pyProjectSettings = tomli_load(file)
unittestXMLFile = Path(pyProjectSettings["tool"]["pytest"]["junit_xml"]) toolSection = pyProjectSettings["tool"]
mergedUnittestXMLFile = Path(pyProjectSettings["tool"]["pyedaa-reports"]["junit_xml"]) if "pytest" in toolSection:
coverageHTMLDirectory = Path(pyProjectSettings["tool"]["coverage"]["html"]["directory"]) section = toolSection["pytest"]
coverageXMLFile = Path(pyProjectSettings["tool"]["coverage"]["xml"]["output"]) if "junit_xml" in section:
coverageJSONFile= Path(pyProjectSettings["tool"]["coverage"]["json"]["output"]) unittestXMLFile = Path(section["junit_xml"])
typingCoberturaFile = Path(pyProjectSettings["tool"]["mypy"]["cobertura_xml_report"]) / "cobertura.xml"
typingJUnitFile = Path(pyProjectSettings["tool"]["mypy"]["junit_xml"]) if "pyedaa-reports" in toolSection:
typingHTMLDirectory = Path(pyProjectSettings["tool"]["mypy"]["html_report"]) section = toolSection["pyedaa-reports"]
if "junit_xml" in section:
mergedUnittestXMLFile = Path(section["junit_xml"])
if "coverage" in toolSection:
section = toolSection["coverage"]
if "html" in section:
coverageHTMLDirectory = Path(section["html"]["directory"])
if "xml" in section:
coverageXMLFile = Path(section["xml"]["output"])
if "json" in section:
coverageJSONFile= Path(section["json"]["output"])
if "mypy" in toolSection:
section = toolSection["mypy"]
if "cobertura_xml_report" in section:
typingCoberturaFile = Path(section["cobertura_xml_report"]) / "cobertura.xml"
if "junit_xml" in section:
typingJUnitFile = Path(section["junit_xml"])
if "html_report" in section:
typingHTMLDirectory = Path(section["html_report"])
else: else:
print(f"File '{pyProjectFile}' not found.") print(f"File '{pyProjectFile}' not found.")
print(f"::error title=FileNotFoundError::File '{pyProjectFile}' not found.") print(f"::error title=FileNotFoundError::File '{pyProjectFile}' not found.")

View File

@@ -33,7 +33,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
requirements: requirements:
description: 'Python dependencies to be installed through pip; if empty, use pyproject.toml through build.' description: 'Python dependencies to be installed through pip; if empty, use pyproject.toml through build.'

View File

@@ -48,12 +48,12 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
python_version_list: python_version_list:
description: 'Space separated list of Python versions to run tests with.' description: 'Space separated list of Python versions to run tests with.'
required: false required: false
default: '3.9 3.10 3.11 3.12 3.13' default: '3.10 3.11 3.12 3.13 3.14'
type: string type: string
system_list: system_list:
description: 'Space separated list of systems to run tests on.' description: 'Space separated list of systems to run tests on.'
@@ -164,7 +164,7 @@ jobs:
package_name = "${{ inputs.package_name }}".strip() package_name = "${{ inputs.package_name }}".strip()
name = "${{ inputs.name }}".strip() name = "${{ inputs.name }}".strip()
if package_namespace == "": # or package_namespace == ".": if package_namespace == "":
package_fullname = package_name package_fullname = package_name
package_directory = package_name package_directory = package_name
elif package_namespace[-2:] == ".*": elif package_namespace[-2:] == ".*":
@@ -259,8 +259,8 @@ jobs:
disable_list = "${{ inputs.disable_list }}".strip() disable_list = "${{ inputs.disable_list }}".strip()
currentMSYS2Version = "3.12" currentMSYS2Version = "3.12"
currentAlphaVersion = "3.14" currentAlphaVersion = "3.15"
currentAlphaRelease = "3.14.0-rc.3" currentAlphaRelease = "3.15.0-a.1"
if systems == "": if systems == "":
print("::error title=Parameter::system_list is empty.") print("::error title=Parameter::system_list is empty.")

View File

@@ -191,13 +191,14 @@ jobs:
printf "${ANSI_LIGHT_GREEN} [OK]\n" printf "${ANSI_LIGHT_GREEN} [OK]\n"
default_branch="${defaultBranch}" default_branch="${defaultBranch}"
printf " default_branch=%s\n" "${default_branch}" printf " Default branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR}\n" "${default_branch}"
else else
printf "${ANSI_LIGHT_RED} [FAILED]\n" printf "${ANSI_LIGHT_RED} [FAILED]\n"
printf " %s\n" "${default_branch}" printf " ${ANSI_LIGHT_RED}%s${ANSI_NOCOLOR}\n" "${default_branch}"
fi fi
printf "Commit checks:\n" printf "Commit checks:\n"
printf " Commit: %s\n" "${{ github.sha }}"
printf " Commit kind " printf " Commit kind "
if [[ -z "$(git rev-list -1 --merges ${{ github.sha }}~1..${{ github.sha }})" ]]; then if [[ -z "$(git rev-list -1 --merges ${{ github.sha }}~1..${{ github.sha }})" ]]; then
is_regular_commit="true" is_regular_commit="true"
@@ -208,24 +209,37 @@ jobs:
fi fi
printf "Branch checks:\n" printf "Branch checks:\n"
printf " Branch: %s\n" "${branch}"
printf " Commit on default branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR} " "${defaultBranch}"
if [[ "${branch}" == "${defaultBranch}" ]]; then if [[ "${branch}" == "${defaultBranch}" ]]; then
on_default_branch="true" on_default_branch="true"
printf " Commit on default branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR}\n" "${defaultBranch}" printf "${ANSI_LIGHT_GREEN}[YES]${ANSI_NOCOLOR}\n"
else
printf "${ANSI_LIGHT_RED}[NO]${ANSI_NOCOLOR}\n"
fi fi
printf " Commit on main branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR} " "${{ inputs.main_branch }}"
if [[ "${branch}" == "${{ inputs.main_branch }}" ]]; then if [[ "${branch}" == "${{ inputs.main_branch }}" ]]; then
on_main_branch="true" on_main_branch="true"
printf " Commit on main branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR}\n" "${{ inputs.main_branch }}" printf "${ANSI_LIGHT_GREEN}[YES]${ANSI_NOCOLOR}\n"
else
printf "${ANSI_LIGHT_RED}[NO]${ANSI_NOCOLOR}\n"
fi fi
printf " Commit on release branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR} " "${{ inputs.release_branch }}"
if [[ "${branch}" == "${{ inputs.release_branch }}" ]]; then if [[ "${branch}" == "${{ inputs.release_branch }}" ]]; then
on_release_branch="true" on_release_branch="true"
printf " Commit on release branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR}\n" "${{ inputs.release_branch }}" printf "${ANSI_LIGHT_GREEN}[YES]${ANSI_NOCOLOR}\n"
else
printf "${ANSI_LIGHT_RED}[NO]${ANSI_NOCOLOR}\n"
fi fi
printf " Commit on development branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR} " "${{ inputs.development_branch }}"
if [[ "${branch}" == "${{ inputs.development_branch }}" ]]; then if [[ "${branch}" == "${{ inputs.development_branch }}" ]]; then
on_dev_branch="true" on_dev_branch="true"
printf " Commit on development branch ${ANSI_LIGHT_BLUE}'%s'${ANSI_NOCOLOR}\n" "${{ inputs.development_branch }}" printf "${ANSI_LIGHT_GREEN}[YES]${ANSI_NOCOLOR}\n"
else
printf "${ANSI_LIGHT_RED}[NO]${ANSI_NOCOLOR}\n"
fi fi
if [[ "${is_merge_commit}" == "true" ]]; then if [[ "${is_merge_commit}" == "true" ]]; then
@@ -261,11 +275,14 @@ jobs:
NIGHTLY_TAG_PATTERN='^${{ inputs.nightly_tag_pattern }}$' NIGHTLY_TAG_PATTERN='^${{ inputs.nightly_tag_pattern }}$'
RELEASE_TAG_PATTERN='^${{ inputs.release_tag_pattern }}$' RELEASE_TAG_PATTERN='^${{ inputs.release_tag_pattern }}$'
printf " Check tag name against regexp '%s' ... " "${RELEASE_TAG_PATTERN}"
if [[ "${tag}" =~ NIGHTLY_TAG_PATTERN ]]; then printf "Tag checks:\n"
printf " Tag: %s\n" "${tag}"
printf " Check tag '%s' against regexp ... " "${tag}"
if [[ "${tag}" =~ ${NIGHTLY_TAG_PATTERN} ]]; then
printf "${ANSI_LIGHT_GREEN}[NIGHTLY]${ANSI_NOCOLOR}\n" printf "${ANSI_LIGHT_GREEN}[NIGHTLY]${ANSI_NOCOLOR}\n"
is_nightly_tag="true" is_nightly_tag="true"
elif [[ "${tag}" =~ $RELEASE_TAG_PATTERN ]]; then elif [[ "${tag}" =~ ${RELEASE_TAG_PATTERN} ]]; then
printf "${ANSI_LIGHT_GREEN}[RELEASE]${ANSI_NOCOLOR}\n" printf "${ANSI_LIGHT_GREEN}[RELEASE]${ANSI_NOCOLOR}\n"
version="${tag}" version="${tag}"
is_release_tag="true" is_release_tag="true"
@@ -277,6 +294,30 @@ jobs:
printf "::error title=RexExpCheck::Tag name '%s' doesn't conform to regexp '%s' nor '%s'.\n" "${tag}" "${NIGHTLY_TAG_PATTERN}" "${RELEASE_TAG_PATTERN}" printf "::error title=RexExpCheck::Tag name '%s' doesn't conform to regexp '%s' nor '%s'.\n" "${tag}" "${NIGHTLY_TAG_PATTERN}" "${RELEASE_TAG_PATTERN}"
exit 1 exit 1
fi fi
if [[ "${is_nightly_tag}" == "true" ]]; then
printf " Check if nightly tag is on main branch '%s' ... " "${{ inputs.main_branch }}"
git branch --remotes --contains $(git rev-parse --verify "tags/${tag}~0") | grep "origin/${{ inputs.main_branch }}" > /dev/null
if [[ $? -eq 0 ]]; then
printf "${ANSI_LIGHT_GREEN}[OK]${ANSI_NOCOLOR}\n"
else
printf "${ANSI_LIGHT_RED}[FAILED]${ANSI_NOCOLOR}\n"
printf " ${ANSI_LIGHT_RED}Tag '%s' isn't on branch '%s'.${ANSI_NOCOLOR}\n" "${tag}" "${{ inputs.main_branch }}"
printf "::error title=TagCheck::Tag '%s' isn't on branch '%s'.\n" "${tag}" "${{ inputs.main_branch }}"
exit 1
fi
elif [[ "${is_release_tag}" == "true" ]]; then
printf " Check if release tag is on main branch '%s' ... " "${{ inputs.main_branch }}"
git branch --remotes --contains $(git rev-parse --verify "tags/${tag}~0") | grep "origin/${{ inputs.main_branch }}" > /dev/null
if [[ $? -eq 0 ]]; then
printf "${ANSI_LIGHT_GREEN}[OK]${ANSI_NOCOLOR}\n"
else
printf "${ANSI_LIGHT_RED}[FAILED]${ANSI_NOCOLOR}\n"
printf " ${ANSI_LIGHT_RED}Tag '%s' isn't on branch '%s'.${ANSI_NOCOLOR}\n" "${tag}" "${{ inputs.main_branch }}"
printf "::error title=TagCheck::Tag '%s' isn't on branch '%s'.\n" "${tag}" "${{ inputs.main_branch }}"
exit 1
fi
fi
elif [[ "${ref:0:10}" == "refs/pull/" ]]; then elif [[ "${ref:0:10}" == "refs/pull/" ]]; then
printf "${ANSI_LIGHT_YELLOW}[PULL REQUEST]\n" printf "${ANSI_LIGHT_YELLOW}[PULL REQUEST]\n"
ref_kind="pullrequest" ref_kind="pullrequest"

View File

@@ -33,7 +33,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
requirements: requirements:
description: 'Python dependencies to be installed through pip.' description: 'Python dependencies to be installed through pip.'

View File

@@ -32,7 +32,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
requirements: requirements:
description: 'Python dependencies to be installed through pip.' description: 'Python dependencies to be installed through pip.'

View File

@@ -33,7 +33,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
requirements: requirements:
description: 'Python dependencies to be installed through pip.' description: 'Python dependencies to be installed through pip.'

View File

@@ -33,7 +33,7 @@ on:
python_version: python_version:
description: 'Python version.' description: 'Python version.'
required: false required: false
default: '3.13' default: '3.14'
type: string type: string
jobs: jobs:

View File

@@ -9,7 +9,7 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
with: with:
name: Example name: Example
python_version_list: "3.12 3.13" python_version_list: "3.13 3.14" # py-1, py-0
system_list: "ubuntu windows" system_list: "ubuntu windows"
Testing: Testing:

View File

@@ -15,7 +15,8 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
with: with:
package_name: 'myPackage' package_name: 'myPackage'
python_version_list: '3.9 3.10 3.11 3.12 3.13 3.14 pypy-3.10 pypy-3.11' python_version: '3.13' # workaround to use Sphinx in Python 3.13 for sphinx_reports not yet supporting lxml 6.0
python_version_list: '3.10 3.11 3.12 3.13 3.14 pypy-3.10 pypy-3.11'
disable_list: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11' disable_list: 'windows-arm:pypy-3.10 windows-arm:pypy-3.11'
PlatformTestingParams: PlatformTestingParams:
@@ -88,7 +89,9 @@ jobs:
with: with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }} python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }} package_directory: ${{ needs.UnitTestingParams.outputs.package_directory }}
artifact: CodeQuality bandit: 'true'
pylint: 'true'
artifact: 'CodeQuality'
DocCoverage: DocCoverage:
uses: pyTooling/Actions/.github/workflows/CheckDocumentation.yml@main uses: pyTooling/Actions/.github/workflows/CheckDocumentation.yml@main

View File

@@ -8,11 +8,15 @@ jobs:
NamespacePackage: NamespacePackage:
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@main uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@main
with: with:
package_namespace: myFramework package_namespace: 'myFramework'
package_name: Extension package_name: 'Extension'
codecov: true unittest_python_version: '3.13' # workaround to use Sphinx in Python 3.13 for sphinx_reports not yet supporting lxml 6.0
codacy: true bandit: 'true'
dorny: true pylint: 'true'
codecov: 'true'
codacy: 'true'
dorny: 'true'
cleanup: 'false'
secrets: secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -14,7 +14,7 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
with: with:
name: Example name: Example
python_version_list: "3.12 3.13 pypy-3.10 pypy-3.11" python_version_list: "3.12 3.13 pypy-3.10 pypy-3.11" # py-2, py-1, pypy-1, pypy-0
Params_Systems: Params_Systems:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
@@ -26,7 +26,7 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
with: with:
name: Example name: Example
python_version_list: "3.12" python_version_list: "3.12" # py-2
system_list: "ubuntu windows macos macos-arm" system_list: "ubuntu windows macos macos-arm"
include_list: "ubuntu:3.13 ubuntu:3.14 ubuntu-arm:3.12" include_list: "ubuntu:3.13 ubuntu:3.14 ubuntu-arm:3.12"
@@ -34,7 +34,7 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
with: with:
name: Example name: Example
python_version_list: "3.13" python_version_list: "3.13" # py-1
system_list: "ubuntu windows macos macos-arm" system_list: "ubuntu windows macos macos-arm"
exclude_list: "windows:3.13 windows:3.14" exclude_list: "windows:3.13 windows:3.14"
@@ -42,7 +42,7 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
with: with:
name: Example name: Example
python_version_list: "3.13" python_version_list: "3.13" # py-1
system_list: "ubuntu windows macos macos-arm" system_list: "ubuntu windows macos macos-arm"
disable_list: "windows:3.13 windows:3.14" disable_list: "windows:3.13 windows:3.14"
@@ -50,7 +50,7 @@ jobs:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@main uses: pyTooling/Actions/.github/workflows/Parameters.yml@main
with: with:
name: Example name: Example
python_version_list: "3.12 3.13" python_version_list: "3.12 3.13" # py-2, py-1
system_list: "ubuntu windows macos macos-arm" system_list: "ubuntu windows macos macos-arm"
include_list: "windows:3.10 windows:3.11 windows:3.13" include_list: "windows:3.10 windows:3.11 windows:3.13"
exclude_list: "macos:3.12 macos:3.13" exclude_list: "macos:3.12 macos:3.13"
@@ -63,75 +63,25 @@ jobs:
run: run:
shell: python shell: python
steps: steps:
- name: Install dependencies - name: Checkout repository to access local Action
shell: bash uses: actions/checkout@v5
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Checking results from 'Params_Default' - name: Checking job matrix from 'Params_Default'
run: | uses: ./.github/actions/CheckJobMatrix
from json import loads as json_loads with:
from sys import exit expected-default-version: '3.14'
expected-python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
expected-systems: '["ubuntu", "ubuntu-arm", "windows", "windows-arm", "macos", "macos-arm"]'
expected-exclude-jobs: '["windows-arm:3.10"]'
expected-include-jobs: '["mingw64:3.12", "ucrt64:3.12"]'
generated-default-version: ${{ needs.Params_Default.outputs.python_version }}
generated-jobmatrix: ${{ needs.Params_Default.outputs.python_jobs }}
from pyTooling.Common import zipdicts - name: Checking artifact names from 'Params_Default'
uses: ./.github/actions/CheckArtifactNames
expectedPythonVersion = "3.13" with:
expectedPythons = ["3.9", "3.10", "3.11", "3.12", "3.13"] prefix: 'Example'
expectedSystems = ["ubuntu", "ubuntu-arm", "windows", "windows-arm", "macos", "macos-arm"] generated-names: ${{ needs.Params_Default.outputs.artifact_names }}
excludedJobs = ["windows-arm:3.9", "windows-arm:3.10"]
includeJobs = ["mingw64:3.12", "ucrt64:3.12"]
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedName = "Example"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
actualPythonVersion = """${{ needs.Params_Default.outputs.python_version }}"""
actualPythonJobs = json_loads("""${{ needs.Params_Default.outputs.python_jobs }}""".replace("'", '"'))
actualArtifactNames = json_loads("""${{ needs.Params_Default.outputs.artifact_names }}""".replace("'", '"'))
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
if errors == 0:
print(f"All checks PASSED.")
exit(errors)
Params_Check_PythonVersions: Params_Check_PythonVersions:
needs: needs:
@@ -141,75 +91,19 @@ jobs:
run: run:
shell: python shell: python
steps: steps:
- name: Install dependencies - name: Checkout repository to access local Action
shell: bash uses: actions/checkout@v5
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Checking results from 'Params_PythonVersions' - name: Checking job matrix from 'Params_PythonVersions'
run: | uses: ./.github/actions/CheckJobMatrix
from json import loads as json_loads with:
from sys import exit expected-default-version: '3.14'
expected-python-versions: '["3.12", "3.13", "pypy-3.10", "pypy-3.11"]'
from pyTooling.Common import zipdicts expected-systems: '["ubuntu", "ubuntu-arm", "windows", "windows-arm", "macos", "macos-arm"]'
expected-exclude-jobs: '["windows-arm:pypy-3.10", "windows-arm:pypy-3.11"]'
expectedPythonVersion = "3.13" expected-include-jobs: '["mingw64:3.12", "ucrt64:3.12"]'
expectedPythons = ["3.12", "3.13", "pypy-3.10", "pypy-3.11"] generated-default-version: ${{ needs.Params_PythonVersions.outputs.python_version }}
expectedSystems = ["ubuntu", "ubuntu-arm", "windows", "windows-arm", "macos", "macos-arm"] generated-jobmatrix: ${{ needs.Params_PythonVersions.outputs.python_jobs }}
excludedJobs = ["windows-arm:pypy-3.10", "windows-arm:pypy-3.11"]
includeJobs = ["mingw64:3.12", "ucrt64:3.12"]
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedName = "Example"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
actualPythonVersion = """${{ needs.Params_PythonVersions.outputs.python_version }}"""
actualPythonJobs = json_loads("""${{ needs.Params_PythonVersions.outputs.python_jobs }}""".replace("'", '"'))
actualArtifactNames = json_loads("""${{ needs.Params_PythonVersions.outputs.artifact_names }}""".replace("'", '"'))
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
if errors == 0:
print(f"All checks PASSED.")
exit(errors)
Params_Check_Systems: Params_Check_Systems:
needs: needs:
@@ -219,75 +113,19 @@ jobs:
run: run:
shell: python shell: python
steps: steps:
- name: Install dependencies - name: Checkout repository to access local Action
shell: bash uses: actions/checkout@v5
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Checking results from 'Params_Systems' - name: Checking job matrix from 'Params_Systems'
run: | uses: ./.github/actions/CheckJobMatrix
from json import loads as json_loads with:
from sys import exit expected-default-version: '3.14'
expected-python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
from pyTooling.Common import zipdicts expected-systems: '["windows"]'
expected-exclude-jobs: '[]'
expectedPythonVersion = "3.13" expected-include-jobs: '["mingw32:3.12", "mingw64:3.12"]'
expectedPythons = ["3.9", "3.10", "3.11", "3.12", "3.13"] generated-default-version: ${{ needs.Params_Systems.outputs.python_version }}
expectedSystems = ["windows"] generated-jobmatrix: ${{ needs.Params_Systems.outputs.python_jobs }}
excludedJobs = []
includeJobs = ["mingw64:3.12", "ucrt64:3.12"]
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedName = "Example"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
actualPythonVersion = """${{ needs.Params_Systems.outputs.python_version }}"""
actualPythonJobs = json_loads("""${{ needs.Params_Systems.outputs.python_jobs }}""".replace("'", '"'))
actualArtifactNames = json_loads("""${{ needs.Params_Systems.outputs.artifact_names }}""".replace("'", '"'))
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
if errors == 0:
print(f"All checks PASSED.")
exit(errors)
Params_Check_Include: Params_Check_Include:
needs: needs:
@@ -297,75 +135,19 @@ jobs:
run: run:
shell: python shell: python
steps: steps:
- name: Install dependencies - name: Checkout repository to access local Action
shell: bash uses: actions/checkout@v5
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Checking results from 'Params_Include' - name: Checking job matrix from 'Params_Include'
run: | uses: ./.github/actions/CheckJobMatrix
from json import loads as json_loads with:
from sys import exit expected-default-version: '3.14'
expected-python-versions: '["3.12"]'
from pyTooling.Common import zipdicts expected-systems: '["ubuntu", "windows", "macos", "macos-arm"]'
expected-exclude-jobs: '[]'
expectedPythonVersion = "3.13" expected-include-jobs: '["ubuntu:3.13", "ubuntu:3.14", "ubuntu-arm:3.12"]'
expectedPythons = ["3.12"] generated-default-version: ${{ needs.Params_Include.outputs.python_version }}
expectedSystems = ["ubuntu", "windows", "macos", "macos-arm"] generated-jobmatrix: ${{ needs.Params_Include.outputs.python_jobs }}
excludedJobs = []
includeJobs = ["ubuntu:3.13", "ubuntu:3.14", "ubuntu-arm:3.12"]
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedName = "Example"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
actualPythonVersion = """${{ needs.Params_Include.outputs.python_version }}"""
actualPythonJobs = json_loads("""${{ needs.Params_Include.outputs.python_jobs }}""".replace("'", '"'))
actualArtifactNames = json_loads("""${{ needs.Params_Include.outputs.artifact_names }}""".replace("'", '"'))
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
if errors == 0:
print(f"All checks PASSED.")
exit(errors)
Params_Check_Exclude: Params_Check_Exclude:
needs: needs:
@@ -375,75 +157,19 @@ jobs:
run: run:
shell: python shell: python
steps: steps:
- name: Install dependencies - name: Checkout repository to access local Action
shell: bash uses: actions/checkout@v5
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Checking results from 'Params_Exclude' - name: Checking job matrix from 'Params_Exclude'
run: | uses: ./.github/actions/CheckJobMatrix
from json import loads as json_loads with:
from sys import exit expected-default-version: '3.14'
expected-python-versions: '["3.13"]'
from pyTooling.Common import zipdicts expected-systems: '["ubuntu", "macos", "macos-arm"]'
expected-exclude-jobs: '[]'
expectedPythonVersion = "3.13" expected-include-jobs: '[]'
expectedPythons = ["3.13"] generated-default-version: ${{ needs.Params_Exclude.outputs.python_version }}
expectedSystems = ["ubuntu", "macos", "macos-arm"] generated-jobmatrix: ${{ needs.Params_Exclude.outputs.python_jobs }}
excludedJobs = []
includeJobs = []
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedName = "Example"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
actualPythonVersion = """${{ needs.Params_Exclude.outputs.python_version }}"""
actualPythonJobs = json_loads("""${{ needs.Params_Exclude.outputs.python_jobs }}""".replace("'", '"'))
actualArtifactNames = json_loads("""${{ needs.Params_Exclude.outputs.artifact_names }}""".replace("'", '"'))
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
if errors == 0:
print(f"All checks PASSED.")
exit(errors)
Params_Check_Disable: Params_Check_Disable:
needs: needs:
@@ -453,75 +179,19 @@ jobs:
run: run:
shell: python shell: python
steps: steps:
- name: Install dependencies - name: Checkout repository to access local Action
shell: bash uses: actions/checkout@v5
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Checking results from 'Params_Disable' - name: Checking job matrix from 'Params_Disable'
run: | uses: ./.github/actions/CheckJobMatrix
from json import loads as json_loads with:
from sys import exit expected-default-version: '3.14'
expected-python-versions: '["3.13"]'
from pyTooling.Common import zipdicts expected-systems: '["ubuntu", "windows", "macos", "macos-arm"]'
expected-exclude-jobs: '["windows:3.13"]'
expectedPythonVersion = "3.13" expected-include-jobs: '[]'
expectedPythons = ["3.13"] generated-default-version: ${{ needs.Params_Disable.outputs.python_version }}
expectedSystems = ["ubuntu", "windows", "macos", "macos-arm"] generated-jobmatrix: ${{ needs.Params_Disable.outputs.python_jobs }}
excludedJobs = ["windows:3.13"]
includeJobs = []
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedName = "Example"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
actualPythonVersion = """${{ needs.Params_Disable.outputs.python_version }}"""
actualPythonJobs = json_loads("""${{ needs.Params_Disable.outputs.python_jobs }}""".replace("'", '"'))
actualArtifactNames = json_loads("""${{ needs.Params_Disable.outputs.artifact_names }}""".replace("'", '"'))
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
if errors == 0:
print(f"All checks PASSED.")
exit(errors)
Params_Check_All: Params_Check_All:
needs: needs:
@@ -531,72 +201,16 @@ jobs:
run: run:
shell: python shell: python
steps: steps:
- name: Install dependencies - name: Checkout repository to access local Action
shell: bash uses: actions/checkout@v5
run: pip install --disable-pip-version-check --break-system-packages pyTooling
- name: Checking results from 'Params_All' - name: Checking job matrix from 'Params_All'
run: | uses: ./.github/actions/CheckJobMatrix
from json import loads as json_loads with:
from sys import exit expected-default-version: '3.14'
expected-python-versions: '["3.12", "3.13"]'
from pyTooling.Common import zipdicts expected-systems: '["ubuntu", "windows", "macos-arm"]'
expected-exclude-jobs: '[]'
expectedPythonVersion = "3.13" expected-include-jobs: '["windows:3.10", "windows:3.11", "windows:3.13"]'
expectedPythons = ["3.12", "3.13"] generated-default-version: ${{ needs.Params_All.outputs.python_version }}
expectedSystems = ["ubuntu", "macos-arm", "windows"] generated-jobmatrix: ${{ needs.Params_All.outputs.python_jobs }}
excludedJobs = []
includeJobs = ["windows:3.10", "windows:3.11", "windows:3.13"]
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedName = "Example"
expectedArtifacts = {
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
"unittesting_html": f"{expectedName}-UnitTestReportSummary-HTML",
"perftesting_xml": f"{expectedName}-PerformanceTestReportSummary-XML",
"benchtesting_xml": f"{expectedName}-BenchmarkTestReportSummary-XML",
"apptesting_xml": f"{expectedName}-ApplicationTestReportSummary-XML",
"codecoverage_sqlite": f"{expectedName}-CodeCoverage-SQLite",
"codecoverage_xml": f"{expectedName}-CodeCoverage-XML",
"codecoverage_json": f"{expectedName}-CodeCoverage-JSON",
"codecoverage_html": f"{expectedName}-CodeCoverage-HTML",
"statictyping_cobertura": f"{expectedName}-StaticTyping-Cobertura-XML",
"statictyping_junit": f"{expectedName}-StaticTyping-JUnit-XML",
"statictyping_html": f"{expectedName}-StaticTyping-HTML",
"package_all": f"{expectedName}-Packages",
"documentation_html": f"{expectedName}-Documentation-HTML",
"documentation_latex": f"{expectedName}-Documentation-LaTeX",
"documentation_pdf": f"{expectedName}-Documentation-PDF",
}
actualPythonVersion = """${{ needs.Params_All.outputs.python_version }}"""
actualPythonJobs = json_loads("""${{ needs.Params_All.outputs.python_jobs }}""".replace("'", '"'))
actualArtifactNames = json_loads("""${{ needs.Params_All.outputs.artifact_names }}""".replace("'", '"'))
errors = 0
if actualPythonVersion != expectedPythonVersion:
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
errors += 1
if len(actualPythonJobs) != len(expectedJobs):
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
print("Actual jobs:")
for job in actualPythonJobs:
if job['system'] == "msys2":
print(f" {job['runtime'].lower()}:{job['python']}")
else:
print(f" {job['system']}:{job['python']}")
print("Expected jobs:")
for job in expectedJobs:
print(f" {job}")
errors += 1
if len(actualArtifactNames) != len(expectedArtifacts):
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
errors += 1
else:
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
if actual != expected:
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
errors += 1
if errors == 0:
print(f"All checks PASSED.")
exit(errors)

View File

@@ -8,11 +8,14 @@ jobs:
SimplePackage: SimplePackage:
uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@main uses: pyTooling/Actions/.github/workflows/CompletePipeline.yml@main
with: with:
package_name: myPackage package_name: 'myPackage'
codecov: true unittest_python_version: '3.13' # workaround to use Sphinx in Python 3.13 for sphinx_reports not yet supporting lxml 6.0
codacy: true bandit: 'true'
dorny: true pylint: 'true'
cleanup: false codecov: 'true'
codacy: 'true'
dorny: 'true'
cleanup: 'false'
secrets: secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -1,2 +1,2 @@
wheel ~= 0.45 wheel ~= 0.45
twine ~= 6.1 twine ~= 6.2

View File

@@ -375,9 +375,9 @@ Parameter Summary
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
| :ref:`JOBTMPL/CompletePipeline/Input/package_name` | yes | string | — — — — | | :ref:`JOBTMPL/CompletePipeline/Input/package_name` | yes | string | — — — — |
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
| :ref:`JOBTMPL/CompletePipeline/Input/unittest_python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/CompletePipeline/Input/unittest_python_version` | no | string | ``'3.14'`` |
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
| :ref:`JOBTMPL/CompletePipeline/Input/unittest_python_version_list` | no | string | ``'3.9 3.10 3.11 3.12 3.13'`` | | :ref:`JOBTMPL/CompletePipeline/Input/unittest_python_version_list` | no | string | ``'3.10 3.11 3.12 3.13 3.14'`` |
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
| :ref:`JOBTMPL/CompletePipeline/Input/unittest_system_list` | no | string | ``'ubuntu windows macos macos-arm ucrt64'`` | | :ref:`JOBTMPL/CompletePipeline/Input/unittest_system_list` | no | string | ``'ubuntu windows macos macos-arm ucrt64'`` |
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
@@ -387,7 +387,7 @@ Parameter Summary
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
| :ref:`JOBTMPL/CompletePipeline/Input/unittest_disable_list` | no | string | ``'windows-arm:pypy-3.10 windows-arm:pypy-3.11'`` | | :ref:`JOBTMPL/CompletePipeline/Input/unittest_disable_list` | no | string | ``'windows-arm:pypy-3.10 windows-arm:pypy-3.11'`` |
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
| :ref:`JOBTMPL/CompletePipeline/Input/apptest_python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/CompletePipeline/Input/apptest_python_version` | no | string | ``'3.14'`` |
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
| :ref:`JOBTMPL/CompletePipeline/Input/apptest_python_version_list` | no | string | ``''`` | | :ref:`JOBTMPL/CompletePipeline/Input/apptest_python_version_list` | no | string | ``''`` |
+---------------------------------------------------------------------+----------+----------+---------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+---------------------------------------------------+
@@ -532,7 +532,7 @@ unittest_python_version
:Type: string :Type: string
:Required: no :Required: no
:Default Value: ``'3.13'`` :Default Value: ``'3.14'``
:Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br| :Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br|
See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__ See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__
and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__. and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__.
@@ -550,7 +550,7 @@ unittest_python_version_list
:Type: string :Type: string
:Required: no :Required: no
:Default Value: ``'3.9 3.10 3.11 3.12 3.13'`` :Default Value: ``'3.10 3.11 3.12 3.13 3.14'``
:Possible Values: A space separated list of valid Python versions conforming to the pattern ``<major>.<minor>`` or :Possible Values: A space separated list of valid Python versions conforming to the pattern ``<major>.<minor>`` or
``pypy-<major>.<minor>``. ``pypy-<major>.<minor>``.
:Description: The list of space-separated Python versions used for unit testing. :Description: The list of space-separated Python versions used for unit testing.
@@ -625,7 +625,7 @@ apptest_python_version
:Type: string :Type: string
:Required: no :Required: no
:Default Value: ``'3.13'`` :Default Value: ``'3.14'``
:Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br| :Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br|
See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__ See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__
and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__. and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__.

View File

@@ -98,7 +98,7 @@ Parameter Summary
+=========================================================================+==========+================+===================================================================+ +=========================================================================+==========+================+===================================================================+
| :ref:`JOBTMPL/SphinxDocumentation/Input/ubuntu_image_version` | no | string | ``'24.04'`` | | :ref:`JOBTMPL/SphinxDocumentation/Input/ubuntu_image_version` | no | string | ``'24.04'`` |
+-------------------------------------------------------------------------+----------+----------------+-------------------------------------------------------------------+ +-------------------------------------------------------------------------+----------+----------------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/SphinxDocumentation/Input/python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/SphinxDocumentation/Input/python_version` | no | string | ``'3.14'`` |
+-------------------------------------------------------------------------+----------+----------------+-------------------------------------------------------------------+ +-------------------------------------------------------------------------+----------+----------------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/SphinxDocumentation/Input/requirements` | no | string | ``'-r doc/requirements.txt'`` | | :ref:`JOBTMPL/SphinxDocumentation/Input/requirements` | no | string | ``'-r doc/requirements.txt'`` |
+-------------------------------------------------------------------------+----------+----------------+-------------------------------------------------------------------+ +-------------------------------------------------------------------------+----------+----------------+-------------------------------------------------------------------+

View File

@@ -91,7 +91,7 @@ Parameter Summary
+=====================================================================+==========+==========+===================================================================+ +=====================================================================+==========+==========+===================================================================+
| :ref:`JOBTMPL/Package/Input/ubuntu_image_version` | no | string | ``'24.04'`` | | :ref:`JOBTMPL/Package/Input/ubuntu_image_version` | no | string | ``'24.04'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/Package/Input/python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/Package/Input/python_version` | no | string | ``'3.14'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/Package/Input/requirements` | no | string | ``''`` | | :ref:`JOBTMPL/Package/Input/requirements` | no | string | ``''`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+

View File

@@ -116,7 +116,7 @@ Parameter Summary
+=====================================================================+==========+==========+===================================================================+ +=====================================================================+==========+==========+===================================================================+
| :ref:`JOBTMPL/PublishOnPyPI/Input/ubuntu_image_version` | no | string | ``'24.04'`` | | :ref:`JOBTMPL/PublishOnPyPI/Input/ubuntu_image_version` | no | string | ``'24.04'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/PublishOnPyPI/Input/python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/PublishOnPyPI/Input/python_version` | no | string | ``'3.14'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/PublishOnPyPI/Input/requirements` | no | string | ``'wheel twine'`` | | :ref:`JOBTMPL/PublishOnPyPI/Input/requirements` | no | string | ``'wheel twine'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+

View File

@@ -78,7 +78,7 @@ Parameter Summary
+=========================================================================+==========+==========+===================================================================+ +=========================================================================+==========+==========+===================================================================+
| :ref:`JOBTMPL/CheckDocumentation/Input/ubuntu_image_version` | no | string | ``'24.04'`` | | :ref:`JOBTMPL/CheckDocumentation/Input/ubuntu_image_version` | no | string | ``'24.04'`` |
+-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/CheckDocumentation/Input/python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/CheckDocumentation/Input/python_version` | no | string | ``'3.14'`` |
+-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/CheckDocumentation/Input/directory` | yes | string | — — — — | | :ref:`JOBTMPL/CheckDocumentation/Input/directory` | yes | string | — — — — |
+-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +-------------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+

View File

@@ -123,7 +123,7 @@ Parameter Summary
+=====================================================================+==========+================+==========================================================================================================================================+ +=====================================================================+==========+================+==========================================================================================================================================+
| :ref:`JOBTMPL/StaticTypeCheck/Input/ubuntu_image_version` | no | string | ``'24.04'`` | | :ref:`JOBTMPL/StaticTypeCheck/Input/ubuntu_image_version` | no | string | ``'24.04'`` |
+---------------------------------------------------------------------+----------+----------------+------------------------------------------------------------------------------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------------+------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`JOBTMPL/StaticTypeCheck/Input/python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/StaticTypeCheck/Input/python_version` | no | string | ``'3.14'`` |
+---------------------------------------------------------------------+----------+----------------+------------------------------------------------------------------------------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------------+------------------------------------------------------------------------------------------------------------------------------------------+
| :ref:`JOBTMPL/StaticTypeCheck/Input/requirements` | no | string | ``'-r tests/requirements.txt'`` | | :ref:`JOBTMPL/StaticTypeCheck/Input/requirements` | no | string | ``'-r tests/requirements.txt'`` |
+---------------------------------------------------------------------+----------+----------------+------------------------------------------------------------------------------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------------+------------------------------------------------------------------------------------------------------------------------------------------+

View File

@@ -107,7 +107,7 @@ Parameter Summary
+=====================================================================+==========+==========+===================================================================+ +=====================================================================+==========+==========+===================================================================+
| :ref:`JOBTMPL/ExtractConfiguration/Input/ubuntu_image_version` | no | string | ``'24.04'`` | | :ref:`JOBTMPL/ExtractConfiguration/Input/ubuntu_image_version` | no | string | ``'24.04'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/ExtractConfiguration/Input/python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/ExtractConfiguration/Input/python_version` | no | string | ``'3.14'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/ExtractConfiguration/Input/coverage_config` | no | string | ``'pyproject.toml'`` | | :ref:`JOBTMPL/ExtractConfiguration/Input/coverage_config` | no | string | ``'pyproject.toml'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+

View File

@@ -169,9 +169,9 @@ Parameter Summary
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/Parameters/Input/package_name` | no | string | ``''`` | | :ref:`JOBTMPL/Parameters/Input/package_name` | no | string | ``''`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/Parameters/Input/python_version` | no | string | ``'3.13'`` | | :ref:`JOBTMPL/Parameters/Input/python_version` | no | string | ``'3.14'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/Parameters/Input/python_version_list` | no | string | ``'3.9 3.10 3.11 3.12 3.13'`` | | :ref:`JOBTMPL/Parameters/Input/python_version_list` | no | string | ``'3.10 3.11 3.12 3.13 3.14'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
| :ref:`JOBTMPL/Parameters/Input/system_list` | no | string | ``'ubuntu windows macos macos-arm mingw64 ucrt64'`` | | :ref:`JOBTMPL/Parameters/Input/system_list` | no | string | ``'ubuntu windows macos macos-arm mingw64 ucrt64'`` |
+---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+ +---------------------------------------------------------------------+----------+----------+-------------------------------------------------------------------+
@@ -348,7 +348,7 @@ python_version
:Type: string :Type: string
:Required: no :Required: no
:Default Value: ``'3.13'`` :Default Value: ``'3.14'``
:Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br| :Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br|
See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__ See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__
and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__. and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__.
@@ -364,7 +364,7 @@ python_version_list
:Type: string :Type: string
:Required: no :Required: no
:Default Value: ``'3.9 3.10 3.11 3.12 3.13'`` :Default Value: ``'3.10 3.11 3.12 3.13 3.14'``
:Possible Values: A space separated list of valid Python versions conforming to the pattern ``<major>.<minor>`` or :Possible Values: A space separated list of valid Python versions conforming to the pattern ``<major>.<minor>`` or
``pypy-<major>.<minor>``. |br| ``pypy-<major>.<minor>``. |br|
See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__ See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__
@@ -563,7 +563,7 @@ python_version
============== ==============
:Type: string :Type: string
:Default Value: ``'3.13'`` :Default Value: ``'3.14'``
:Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. :Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``.
:Description: Returns :Description: Returns

View File

@@ -3,7 +3,7 @@ python_version
:Type: string :Type: string
:Required: no :Required: no
:Default Value: ``'3.13'`` :Default Value: ``'3.14'``
:Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br| :Possible Values: Any valid Python version conforming to the pattern ``<major>.<minor>`` or ``pypy-<major>.<minor>``. |br|
See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__ See `actions/python-versions - available Python versions <https://github.com/actions/python-versions>`__
and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__. and `actions/setup-python - configurable Python versions <https://github.com/actions/setup-python>`__.

View File

@@ -164,7 +164,7 @@ Example Pipelines
.. code-block:: toml .. code-block:: toml
[build-system] [build-system]
requires = ["setuptools >= 80.0", "wheel ~= 0.45", "pyTooling ~= 8.5"] requires = ["setuptools >= 80.0", "wheel ~= 0.45", "pyTooling ~= 8.7"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.mypy] [tool.mypy]

View File

@@ -1,6 +1,6 @@
-r ../requirements.txt -r ../requirements.txt
pyTooling ~= 8.5 pyTooling ~= 8.7
# Enforce latest version on ReadTheDocs # Enforce latest version on ReadTheDocs
sphinx ~= 8.2 sphinx ~= 8.2
@@ -13,7 +13,7 @@ sphinx_rtd_theme ~= 3.0
# Sphinx Extenstions # Sphinx Extenstions
sphinxcontrib-mermaid ~= 1.0 sphinxcontrib-mermaid ~= 1.0
autoapi >= 2.0.1 autoapi >= 2.0.1
sphinx_design ~= 0.6.1 sphinx_design ~= 0.6
sphinx-copybutton >= 0.5.2 sphinx-copybutton >= 0.5
sphinx_autodoc_typehints ~= 3.2 sphinx_autodoc_typehints ~= 3.2
sphinx_reports ~= 0.9 sphinx_reports ~= 0.9

View File

@@ -40,6 +40,7 @@ __version__ = "0.4.5"
__keywords__ = ["GitHub Actions"] __keywords__ = ["GitHub Actions"]
__issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues" __issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues"
from pickle import dumps
from subprocess import check_call from subprocess import check_call
from pyTooling.Decorators import export, readonly from pyTooling.Decorators import export, readonly

View File

@@ -2,13 +2,14 @@
requires = [ requires = [
"setuptools >= 80.0", "setuptools >= 80.0",
"wheel ~= 0.45", "wheel ~= 0.45",
"pyTooling ~= 8.5" "pyTooling ~= 8.7"
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.pylint.format] [tool.pylint.format]
indent-string="\t" indent-string="\t"
max-line-length = 120 max-line-length = 120
ignore-long-lines = "^.{0,110}#: .*"
[tool.pylint.basic] [tool.pylint.basic]
argument-naming-style = "camelCase" argument-naming-style = "camelCase"

View File

@@ -1 +1 @@
pyTooling ~= 8.5 pyTooling ~= 8.7

View File

@@ -1,7 +1,7 @@
-r ../requirements.txt -r ../requirements.txt
# Coverage collection # Coverage collection
Coverage ~= 7.10 Coverage ~= 7.11
# Test Runner # Test Runner
pytest ~= 8.4 pytest ~= 8.4