mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-15 04:26:55 +08:00
Compare commits
35 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74afc5a42a | ||
|
|
5dc19a5d65 | ||
|
|
188feb556b | ||
|
|
d58db55086 | ||
|
|
ee9a3fbdcd | ||
|
|
8dfc484c42 | ||
|
|
960b7089e7 | ||
|
|
706ef39595 | ||
|
|
04881fc4ca | ||
|
|
2e5a79e0c2 | ||
|
|
0495bfb18c | ||
|
|
7879c05ab7 | ||
|
|
db99e35dec | ||
|
|
e9d0dc3dba | ||
|
|
f9a74102d9 | ||
|
|
b33e0f2782 | ||
|
|
6cfc6e0f8f | ||
|
|
5adddda1a1 | ||
|
|
91289c4257 | ||
|
|
527e94b245 | ||
|
|
f11c335674 | ||
|
|
5bed864443 | ||
|
|
37ec436eb4 | ||
|
|
6a7a4212c3 | ||
|
|
f5b6f17d4e | ||
|
|
883238547a | ||
|
|
7cd852db58 | ||
|
|
ce0d30fe3f | ||
|
|
34dacf7bcf | ||
|
|
48090e113d | ||
|
|
e082d77e7a | ||
|
|
181035b0ba | ||
|
|
643f95bbb6 | ||
|
|
424b75ca96 | ||
|
|
f0610331b9 |
4
.github/workflows/ArtifactCleanUp.yml
vendored
4
.github/workflows/ArtifactCleanUp.yml
vendored
@@ -36,23 +36,19 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
ArtifactCleanUp:
|
ArtifactCleanUp:
|
||||||
name: 🗑️ Artifact Cleanup
|
name: 🗑️ Artifact Cleanup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: 🗑️ Delete package Artifacts
|
- name: 🗑️ Delete package Artifacts
|
||||||
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
|
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
|
||||||
uses: geekyeggo/delete-artifact@v5
|
uses: geekyeggo/delete-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.package }}
|
name: ${{ inputs.package }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: 🗑️ Delete remaining Artifacts
|
- name: 🗑️ Delete remaining Artifacts
|
||||||
if: ${{ inputs.remaining != '' }}
|
if: ${{ inputs.remaining != '' }}
|
||||||
uses: geekyeggo/delete-artifact@v5
|
uses: geekyeggo/delete-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.remaining }}
|
name: ${{ inputs.remaining }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
2
.github/workflows/IntermediateCleanUp.yml
vendored
2
.github/workflows/IntermediateCleanUp.yml
vendored
@@ -44,7 +44,6 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.sqlite_coverage_artifacts_prefix }}*
|
name: ${{ inputs.sqlite_coverage_artifacts_prefix }}*
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: 🗑️ Delete XML coverage artifacts from matrix jobs
|
- name: 🗑️ Delete XML coverage artifacts from matrix jobs
|
||||||
uses: geekyeggo/delete-artifact@v5
|
uses: geekyeggo/delete-artifact@v5
|
||||||
@@ -52,4 +51,3 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.xml_unittest_artifacts_prefix }}*
|
name: ${{ inputs.xml_unittest_artifacts_prefix }}*
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|||||||
33
.github/workflows/_Checking_Parameters.yml
vendored
33
.github/workflows/_Checking_Parameters.yml
vendored
@@ -84,6 +84,8 @@ jobs:
|
|||||||
expectedPythons = ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
expectedPythons = ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
expectedSystems = ["ubuntu", "windows", "macos"]
|
expectedSystems = ["ubuntu", "windows", "macos"]
|
||||||
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons] + ["mingw64:3.11", "ucrt64:3.11"]
|
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons] + ["mingw64:3.11", "ucrt64:3.11"]
|
||||||
|
expectedJobs.remove("macos:3.8")
|
||||||
|
expectedJobs.remove("macos:3.9")
|
||||||
expectedName = "Example"
|
expectedName = "Example"
|
||||||
expectedArtifacts = {
|
expectedArtifacts = {
|
||||||
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
|
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
|
||||||
@@ -112,8 +114,12 @@ jobs:
|
|||||||
errors += 1
|
errors += 1
|
||||||
if len(actualPythonJobs) != len(expectedJobs):
|
if len(actualPythonJobs) != len(expectedJobs):
|
||||||
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
||||||
|
print("Actual jobs:")
|
||||||
for job in actualPythonJobs:
|
for job in actualPythonJobs:
|
||||||
print(f" {job['system']}:{job['python']}")
|
print(f" {job['system']}:{job['python']}")
|
||||||
|
print("Expected jobs:")
|
||||||
|
for job in expectedJobs:
|
||||||
|
print(f" {job}")
|
||||||
errors += 1
|
errors += 1
|
||||||
if len(actualArtifactNames) != len(expectedArtifacts):
|
if len(actualArtifactNames) != len(expectedArtifacts):
|
||||||
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
||||||
@@ -140,6 +146,9 @@ jobs:
|
|||||||
expectedPythons = ["3.9", "3.10", "pypy-3.8", "pypy-3.9"]
|
expectedPythons = ["3.9", "3.10", "pypy-3.8", "pypy-3.9"]
|
||||||
expectedSystems = ["ubuntu", "windows", "macos"]
|
expectedSystems = ["ubuntu", "windows", "macos"]
|
||||||
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons] + ["mingw64:3.11", "ucrt64:3.11"]
|
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons] + ["mingw64:3.11", "ucrt64:3.11"]
|
||||||
|
expectedJobs.remove("macos:3.9")
|
||||||
|
expectedJobs.remove("macos:pypy-3.8")
|
||||||
|
expectedJobs.remove("macos:pypy-3.9")
|
||||||
expectedName = "Example"
|
expectedName = "Example"
|
||||||
expectedArtifacts = {
|
expectedArtifacts = {
|
||||||
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
|
"unittesting_xml": f"{expectedName}-UnitTestReportSummary-XML",
|
||||||
@@ -168,8 +177,12 @@ jobs:
|
|||||||
errors += 1
|
errors += 1
|
||||||
if len(actualPythonJobs) != len(expectedJobs):
|
if len(actualPythonJobs) != len(expectedJobs):
|
||||||
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
||||||
|
print("Actual jobs:")
|
||||||
for job in actualPythonJobs:
|
for job in actualPythonJobs:
|
||||||
print(f" {job['system']}:{job['python']}")
|
print(f" {job['system']}:{job['python']}")
|
||||||
|
print("Expected jobs:")
|
||||||
|
for job in expectedJobs:
|
||||||
|
print(f" {job}")
|
||||||
errors += 1
|
errors += 1
|
||||||
if len(actualArtifactNames) != len(expectedArtifacts):
|
if len(actualArtifactNames) != len(expectedArtifacts):
|
||||||
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
||||||
@@ -224,8 +237,12 @@ jobs:
|
|||||||
errors += 1
|
errors += 1
|
||||||
if len(actualPythonJobs) != len(expectedJobs):
|
if len(actualPythonJobs) != len(expectedJobs):
|
||||||
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
||||||
|
print("Actual jobs:")
|
||||||
for job in actualPythonJobs:
|
for job in actualPythonJobs:
|
||||||
print(f" {job['system']}:{job['python']}")
|
print(f" {job['system']}:{job['python']}")
|
||||||
|
print("Expected jobs:")
|
||||||
|
for job in expectedJobs:
|
||||||
|
print(f" {job}")
|
||||||
errors += 1
|
errors += 1
|
||||||
if len(actualArtifactNames) != len(expectedArtifacts):
|
if len(actualArtifactNames) != len(expectedArtifacts):
|
||||||
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
||||||
@@ -280,8 +297,12 @@ jobs:
|
|||||||
errors += 1
|
errors += 1
|
||||||
if len(actualPythonJobs) != len(expectedJobs):
|
if len(actualPythonJobs) != len(expectedJobs):
|
||||||
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
||||||
|
print("Actual jobs:")
|
||||||
for job in actualPythonJobs:
|
for job in actualPythonJobs:
|
||||||
print(f" {job['system']}:{job['python']}")
|
print(f" {job['system']}:{job['python']}")
|
||||||
|
print("Expected jobs:")
|
||||||
|
for job in expectedJobs:
|
||||||
|
print(f" {job}")
|
||||||
errors += 1
|
errors += 1
|
||||||
if len(actualArtifactNames) != len(expectedArtifacts):
|
if len(actualArtifactNames) != len(expectedArtifacts):
|
||||||
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
||||||
@@ -336,8 +357,12 @@ jobs:
|
|||||||
errors += 1
|
errors += 1
|
||||||
if len(actualPythonJobs) != len(expectedJobs):
|
if len(actualPythonJobs) != len(expectedJobs):
|
||||||
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
||||||
|
print("Actual jobs:")
|
||||||
for job in actualPythonJobs:
|
for job in actualPythonJobs:
|
||||||
print(f" {job['system']}:{job['python']}")
|
print(f" {job['system']}:{job['python']}")
|
||||||
|
print("Expected jobs:")
|
||||||
|
for job in expectedJobs:
|
||||||
|
print(f" {job}")
|
||||||
errors += 1
|
errors += 1
|
||||||
if len(actualArtifactNames) != len(expectedArtifacts):
|
if len(actualArtifactNames) != len(expectedArtifacts):
|
||||||
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
||||||
@@ -392,8 +417,12 @@ jobs:
|
|||||||
errors += 1
|
errors += 1
|
||||||
if len(actualPythonJobs) != len(expectedJobs):
|
if len(actualPythonJobs) != len(expectedJobs):
|
||||||
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
||||||
|
print("Actual jobs:")
|
||||||
for job in actualPythonJobs:
|
for job in actualPythonJobs:
|
||||||
print(f" {job['system']}:{job['python']}")
|
print(f" {job['system']}:{job['python']}")
|
||||||
|
print("Expected jobs:")
|
||||||
|
for job in expectedJobs:
|
||||||
|
print(f" {job}")
|
||||||
errors += 1
|
errors += 1
|
||||||
if len(actualArtifactNames) != len(expectedArtifacts):
|
if len(actualArtifactNames) != len(expectedArtifacts):
|
||||||
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
||||||
@@ -448,8 +477,12 @@ jobs:
|
|||||||
errors += 1
|
errors += 1
|
||||||
if len(actualPythonJobs) != len(expectedJobs):
|
if len(actualPythonJobs) != len(expectedJobs):
|
||||||
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
|
||||||
|
print("Actual jobs:")
|
||||||
for job in actualPythonJobs:
|
for job in actualPythonJobs:
|
||||||
print(f" {job['system']}:{job['python']}")
|
print(f" {job['system']}:{job['python']}")
|
||||||
|
print("Expected jobs:")
|
||||||
|
for job in expectedJobs:
|
||||||
|
print(f" {job}")
|
||||||
errors += 1
|
errors += 1
|
||||||
if len(actualArtifactNames) != len(expectedArtifacts):
|
if len(actualArtifactNames) != len(expectedArtifacts):
|
||||||
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
pyTooling ~= 6.1
|
pyTooling ~= 6.1
|
||||||
|
|
||||||
# Enforce latest version on ReadTheDocs
|
# Enforce latest version on ReadTheDocs
|
||||||
sphinx ~= 7.2
|
sphinx ~= 7.3
|
||||||
docutils ~= 0.18.0
|
docutils ~= 0.18.0
|
||||||
|
|
||||||
# Sphinx Extenstions
|
# Sphinx Extenstions
|
||||||
@@ -16,5 +16,5 @@ sphinxcontrib-mermaid>=0.9.2
|
|||||||
autoapi >= 2.0.1
|
autoapi >= 2.0.1
|
||||||
sphinx_fontawesome >= 0.0.6
|
sphinx_fontawesome >= 0.0.6
|
||||||
sphinx-inline-tabs >= 2023.4.21
|
sphinx-inline-tabs >= 2023.4.21
|
||||||
sphinx_autodoc_typehints >= 1.24.0
|
sphinx_autodoc_typehints ~= 2.1
|
||||||
# changelog>=0.3.5
|
# changelog>=0.3.5
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = [
|
requires = [
|
||||||
"setuptools >= 69.0.0",
|
"setuptools ~= 69.5",
|
||||||
"wheel >= 0.40.0",
|
"wheel ~= 0.40.0",
|
||||||
"pyTooling ~= 6.1"
|
"pyTooling ~= 6.1"
|
||||||
]
|
]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|||||||
@@ -45,7 +45,9 @@ runs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: pip install --disable-pip-version-check PyGithub --progress-bar off
|
run: |
|
||||||
|
[ "$(source /etc/os-release && echo $VERSION_ID)" == "24.04" ] && UBUNTU_2404_ARGS='--break-system-packages' || unset UBUNTU_2404_ARGS
|
||||||
|
pip install --disable-pip-version-check --progress-bar off $UBUNTU_2404_ARGS PyGithub
|
||||||
|
|
||||||
- shell: bash
|
- shell: bash
|
||||||
run: '''${{ github.action_path }}/../releaser.py'''
|
run: '''${{ github.action_path }}/../releaser.py'''
|
||||||
|
|||||||
@@ -28,12 +28,12 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0 #
|
# SPDX-License-Identifier: Apache-2.0 #
|
||||||
# ==================================================================================================================== #
|
# ==================================================================================================================== #
|
||||||
#
|
#
|
||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
from pytest import mark
|
from pytest import mark
|
||||||
from pyTooling.Common import CurrentPlatform
|
from pyTooling.Platform import CurrentPlatform
|
||||||
|
|
||||||
from pyDummy import Application
|
from pyDummy import Application
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__": # pragma: no cover
|
if __name__ == "__main__": # pragma: no cover
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ pytest ~= 8.1
|
|||||||
pytest-cov ~= 5.0
|
pytest-cov ~= 5.0
|
||||||
|
|
||||||
# Static Type Checking
|
# Static Type Checking
|
||||||
mypy ~= 1.9
|
mypy ~= 1.10
|
||||||
typing_extensions ~= 4.11
|
typing_extensions ~= 4.11
|
||||||
lxml ~= 5.1
|
lxml ~= 5.1
|
||||||
|
|||||||
Reference in New Issue
Block a user