Compare commits

...

8 Commits
v7.3.0 ... main

Author SHA1 Message Date
Patrick Lehmann
370c306306 v7.4.2 2026-01-21 23:38:28 +01:00
Patrick Lehmann
c0f5c9f6e1 Fix application testing and how requirements.txt files are searched (introduced for UnitTesting in v7.0.0). 2026-01-21 23:31:09 +01:00
Patrick Lehmann
1ac31243d2 v7.4.1 2026-01-21 08:24:24 +01:00
Patrick Lehmann
cbd7840707 Bumped documentation dependencies. 2026-01-21 08:17:44 +01:00
Patrick Lehmann
69f521d740 Fixed pyaml package name for MSYS2. 2026-01-21 08:13:19 +01:00
Patrick Lehmann
8274b22570 v7.4.0 2026-01-18 21:22:06 +01:00
Patrick Lehmann
c76fed150e Bumped dependencies. 2026-01-18 21:14:23 +01:00
Patrick Lehmann
d650bf7dcf Added Windows before scripts. 2026-01-18 21:13:41 +01:00
7 changed files with 81 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ on:
requirements: requirements:
description: 'Python dependencies to be installed through pip.' description: 'Python dependencies to be installed through pip.'
required: false required: false
default: '-r tests/requirements.txt' default: '-r ./requirements.txt'
type: string type: string
pacboy: pacboy:
description: 'MSYS2 dependencies to be installed through pacboy (pacman).' description: 'MSYS2 dependencies to be installed through pacboy (pacman).'
@@ -94,6 +94,39 @@ jobs:
name: ${{ inputs.wheel }} name: ${{ inputs.wheel }}
path: install path: install
# TODO: extract step to an Action so package, so code can be shared with UnitTesting.yml
- name: Compute path to requirements file
id: requirements
shell: python
run: |
from os import getenv
from pathlib import Path
from sys import version
print(f"Python: {version}")
requirements = "${{ inputs.requirements }}"
if requirements.startswith("-r"):
requirements = requirements[2:].lstrip()
if requirements.startswith("./"):
requirementsFile = Path("${{ inputs.root_directory || '.' }}") / Path("${{ inputs.tests_directory || '.' }}") / Path("${{ inputs.apptest_directory || '.' }}") / Path(requirements[2:])
else:
requirementsFile = Path(requirements)
if not requirementsFile.exists():
print(f"::error title=FileNotFoundError::{requirementsFile}")
exit(1)
print(f"requirements file: {requirementsFile.as_posix()}")
# Write requirements path to special file
github_output = Path(getenv("GITHUB_OUTPUT"))
print(f"GITHUB_OUTPUT: {github_output}")
with github_output.open("a+") as f:
f.write(f"requirements=-r {requirementsFile.as_posix()}\n")
else:
print(f"requirements list: {requirements}")
# TODO: extract step to an Action so package lists are shared with UnitTesting (and GHDL?) # TODO: extract step to an Action so package lists are shared with UnitTesting (and GHDL?)
- name: Compute pacman/pacboy packages - name: Compute pacman/pacboy packages
id: pacboy id: pacboy
@@ -122,7 +155,7 @@ jobs:
return requirements return requirements
requirements = "${{ inputs.requirements }}" requirements = "${{ steps.requirements.outputs.requirements }}"
if requirements.startswith("-r"): if requirements.startswith("-r"):
requirementsFile = Path(requirements[2:].lstrip()) requirementsFile = Path(requirements[2:].lstrip())
try: try:
@@ -136,14 +169,14 @@ jobs:
packages = { packages = {
"aiohttp": "python-aiohttp:p", "aiohttp": "python-aiohttp:p",
"coverage": "python-coverage:p", "coverage": "python-coverage:p",
"docstr_coverage": "python-pyyaml:p python-types-pyyaml:p", "docstr_coverage": "python-pyaml:p python-types-pyyaml:p",
"igraph": "igraph:p", "igraph": "igraph:p",
"jinja2": "python-markupsafe:p", "jinja2": "python-markupsafe:p",
"lxml": "python-lxml:p", "lxml": "python-lxml:p",
"numpy": "python-numpy:p", "numpy": "python-numpy:p",
"markupsafe": "python-markupsafe:p", "markupsafe": "python-markupsafe:p",
"pip": "python-pip:p", "pip": "python-pip:p",
"pyyaml": "python-pyyaml:p python-types-pyyaml:p", "pyyaml": "python-pyaml:p python-types-pyyaml:p",
"ruamel.yaml": "python-ruamel-yaml:p python-ruamel.yaml.clib:p", "ruamel.yaml": "python-ruamel-yaml:p python-ruamel.yaml.clib:p",
"sphinx": "python-markupsafe:p", "sphinx": "python-markupsafe:p",
"tomli": "python-tomli:p", # outdated, now part of Python as tomllib "tomli": "python-tomli:p", # outdated, now part of Python as tomllib
@@ -191,6 +224,8 @@ jobs:
with github_output.open("a+") as f: with github_output.open("a+") as f:
f.write(f"pacboy_packages={' '.join(pacboyPackages)}\n") f.write(f"pacboy_packages={' '.join(pacboyPackages)}\n")
# Python setup
- name: '🟦 Setup MSYS2 for ${{ matrix.runtime }}' - name: '🟦 Setup MSYS2 for ${{ matrix.runtime }}'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
if: matrix.system == 'msys2' if: matrix.system == 'msys2'
@@ -207,6 +242,8 @@ jobs:
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
# Python Dependency steps
- name: 🔧 Install wheel and pip dependencies (native) - name: 🔧 Install wheel and pip dependencies (native)
if: matrix.system != 'msys2' if: matrix.system != 'msys2'
run: | run: |
@@ -222,6 +259,8 @@ jobs:
python -m pip install --disable-pip-version-check --break-system-packages ${{ inputs.requirements }} python -m pip install --disable-pip-version-check --break-system-packages ${{ inputs.requirements }}
fi fi
# TODO: Before scripts?
- name: 🔧 Install wheel from artifact (Ubuntu/macOS) - name: 🔧 Install wheel from artifact (Ubuntu/macOS)
if: ( matrix.system != 'windows' && matrix.system != 'windows-arm' ) if: ( matrix.system != 'windows' && matrix.system != 'windows-arm' )
run: | run: |
@@ -232,6 +271,8 @@ jobs:
run: | run: |
python -m pip install -v --disable-pip-version-check (Get-Item .\install\*.whl).FullName python -m pip install -v --disable-pip-version-check (Get-Item .\install\*.whl).FullName
# Run pytests
- 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: |
@@ -262,6 +303,8 @@ jobs:
python -m pytest -raP $PYTEST_ARGS --color=yes ${{ inputs.tests_directory || '.' }}/${{ inputs.apptest_directory }} python -m pytest -raP $PYTEST_ARGS --color=yes ${{ inputs.tests_directory || '.' }}/${{ inputs.apptest_directory }}
} }
# Upload artifacts
- name: 📤 Upload 'TestReportSummary.xml' artifact - name: 📤 Upload 'TestReportSummary.xml' artifact
if: inputs.apptest_xml_artifact != '' if: inputs.apptest_xml_artifact != ''
uses: pyTooling/upload-artifact@v6 uses: pyTooling/upload-artifact@v6

View File

@@ -69,13 +69,23 @@ on:
required: false required: false
default: '' default: ''
type: string type: string
windows_before_script:
description: 'Scripts to execute before pytest on Windows (x64-64).'
required: false
default: ''
type: string
windows_arm_before_script:
description: 'Scripts to execute before pytest on Windows (aarch64).'
required: false
default: ''
type: string
mingw64_before_script: mingw64_before_script:
description: 'Scripts to execute before pytest on Windows within MSYS2 MinGW64.' description: 'Scripts to execute before pytest on Windows (x64-64) within MSYS2 MinGW64.'
required: false required: false
default: '' default: ''
type: string type: string
ucrt64_before_script: ucrt64_before_script:
description: 'Scripts to execute before pytest on Windows within MSYS2 UCRT64.' description: 'Scripts to execute before pytest on Windows (x64-64) within MSYS2 UCRT64.'
required: false required: false
default: '' default: ''
type: string type: string
@@ -205,6 +215,7 @@ jobs:
# run: | # run: |
# py -3.12 -m pip install --disable-pip-version-check --break-system-packages -U tomli # py -3.12 -m pip install --disable-pip-version-check --break-system-packages -U tomli
# TODO: extract step to an Action so package, so code can be shared with AppTesting.yml
- name: Compute path to requirements file - name: Compute path to requirements file
id: requirements id: requirements
shell: python shell: python
@@ -237,6 +248,7 @@ jobs:
else: else:
print(f"requirements list: {requirements}") print(f"requirements list: {requirements}")
# TODO: extract step to an Action so package lists are shared with UnitTesting (and GHDL?)
- name: Compute pacman/pacboy packages - name: Compute pacman/pacboy packages
id: pacboy id: pacboy
if: matrix.system == 'msys2' if: matrix.system == 'msys2'
@@ -282,7 +294,7 @@ jobs:
"numpy": "python-numpy:p", "numpy": "python-numpy:p",
"markupsafe": "python-markupsafe:p", "markupsafe": "python-markupsafe:p",
"pip": "python-pip:p", "pip": "python-pip:p",
"pyyaml": "python-pyyaml:p python-types-pyyaml:p", "pyyaml": "python-pyaml:p python-types-pyyaml:p",
"ruamel.yaml": "python-ruamel-yaml:p", "ruamel.yaml": "python-ruamel-yaml:p",
# "ruamel.yaml": "python-ruamel-yaml:p python-ruamel.yaml.clib:p", # "ruamel.yaml": "python-ruamel-yaml:p python-ruamel.yaml.clib:p",
"sphinx": "python-markupsafe:p", "sphinx": "python-markupsafe:p",
@@ -380,13 +392,19 @@ jobs:
if: ( matrix.system == 'ubuntu' || matrix.system == 'ubuntu-arm' ) && inputs.ubuntu_before_script != '' if: ( matrix.system == 'ubuntu' || matrix.system == 'ubuntu-arm' ) && inputs.ubuntu_before_script != ''
run: ${{ inputs.ubuntu_before_script }} run: ${{ inputs.ubuntu_before_script }}
# TODO: Windows before script - name: 🪟 Windows (x86-64) before scripts
if: matrix.system == 'windows' && inputs.windows_before_script != ''
run: ${{ inputs.windows_before_script }}
- name: 🪟🟦 MinGW64 before scripts - name: 🏢 Windows (aarch64) before scripts
if: matrix.system == 'windows-arm' && inputs.windows_arm_before_script != ''
run: ${{ inputs.windows_arm_before_script }}
- name: 🪟🟦 Windows (x86-64) + MinGW64 before scripts
if: matrix.system == 'msys2' && matrix.runtime == 'MINGW64' && inputs.mingw64_before_script != '' if: matrix.system == 'msys2' && matrix.runtime == 'MINGW64' && inputs.mingw64_before_script != ''
run: ${{ inputs.mingw64_before_script }} run: ${{ inputs.mingw64_before_script }}
- name: 🪟🟨 UCRT64 before scripts - name: 🪟🟨 Windows (x86-64) + UCRT64 before scripts
if: matrix.system == 'msys2' && matrix.runtime == 'UCRT64' && inputs.ucrt64_before_script != '' if: matrix.system == 'msys2' && matrix.runtime == 'UCRT64' && inputs.ucrt64_before_script != ''
run: ${{ inputs.ucrt64_before_script }} run: ${{ inputs.ucrt64_before_script }}

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.0", "pyTooling ~= 8.10"] requires = ["setuptools >= 80.0", "wheel ~= 0.45.0", "pyTooling ~= 8.11"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.mypy] [tool.mypy]

View File

@@ -1,19 +1,19 @@
-r ../requirements.txt -r ../requirements.txt
pyTooling ~= 8.10 pyTooling ~= 8.11
# Enforce latest version on ReadTheDocs # Enforce latest version on ReadTheDocs
sphinx ~= 8.2 sphinx ~= 9.1
docutils ~= 0.21.0 docutils ~= 0.22.0
docutils_stubs ~= 0.0.22 docutils_stubs ~= 0.0.22
# ReadTheDocs Theme # ReadTheDocs Theme
sphinx_rtd_theme ~= 3.0 sphinx_rtd_theme ~= 3.0
# Sphinx Extenstions # Sphinx Extenstions
sphinxcontrib-mermaid ~= 1.2 sphinxcontrib-mermaid ~= 2.0
autoapi >= 2.0.1 autoapi >= 2.0.1
sphinx_design ~= 0.6.0 sphinx_design ~= 0.7.0
sphinx-copybutton >= 0.5.0 sphinx-copybutton >= 0.5.0
sphinx_autodoc_typehints ~= 3.5 # 3.6 is conflicting with old sphinx_design and rtd theme due to sphinx<9 and docutils<0.22 sphinx_autodoc_typehints ~= 3.5 # 3.6 is conflicting with old sphinx_design and rtd theme due to sphinx<9 and docutils<0.22
sphinx_reports ~= 0.9.0 sphinx_reports ~= 0.10.0

View File

@@ -36,7 +36,7 @@ __author__ = "Patrick Lehmann"
__email__ = "Paebbels@gmail.com" __email__ = "Paebbels@gmail.com"
__copyright__ = "2017-2026, Patrick Lehmann" __copyright__ = "2017-2026, Patrick Lehmann"
__license__ = "Apache License, Version 2.0" __license__ = "Apache License, Version 2.0"
__version__ = "7.3.0" __version__ = "7.4.2"
__keywords__ = ["GitHub Actions"] __keywords__ = ["GitHub Actions"]
__issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues" __issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues"

View File

@@ -2,7 +2,7 @@
requires = [ requires = [
"setuptools >= 80.0", "setuptools >= 80.0",
"wheel ~= 0.45.0", "wheel ~= 0.45.0",
"pyTooling ~= 8.10" "pyTooling ~= 8.11"
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"

View File

@@ -1 +1 @@
pyTooling ~= 8.10 pyTooling ~= 8.11