From 60967bdde1e54d601fe81808a17ab45cc8121de7 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 2 Oct 2023 19:08:43 +0200 Subject: [PATCH] Fixed Workflow syntax. --- .github/workflows/PublishCoverageResults.yml | 4 +++ .github/workflows/_Checking_Pipeline.yml | 23 ++++++--------- pyDummy/__init__.py | 3 ++ requirements.txt | 1 + tests/unit/__init__.py | 31 ++++++++++++++++++++ tests/unit/requirements.txt | 1 + 6 files changed, 49 insertions(+), 14 deletions(-) create mode 100644 tests/unit/__init__.py create mode 100644 tests/unit/requirements.txt diff --git a/.github/workflows/PublishCoverageResults.yml b/.github/workflows/PublishCoverageResults.yml index 0550ab5..017da5f 100644 --- a/.github/workflows/PublishCoverageResults.yml +++ b/.github/workflows/PublishCoverageResults.yml @@ -29,6 +29,10 @@ on: required: false default: 'artifacts/**/*.xml' type: string + secrets: + codacy_token: + description: 'Token to push result to codacy.' + required: true jobs: PublishTestResults: diff --git a/.github/workflows/_Checking_Pipeline.yml b/.github/workflows/_Checking_Pipeline.yml index 2c4c216..98be005 100644 --- a/.github/workflows/_Checking_Pipeline.yml +++ b/.github/workflows/_Checking_Pipeline.yml @@ -1,4 +1,4 @@ -name: Verification Pipeline +name: Verification of Complete Pipeline on: push: @@ -8,8 +8,9 @@ jobs: UnitTestingParams: uses: pyTooling/Actions/.github/workflows/Parameters.yml@cov with: - name: pyTooling - python_version_list: "3.7 3.8 pypy-3.8 3.9 pypy-3.9 3.10 3.11" + name: pyDummy + python_version_list: "3.11" +# python_version_list: "3.7 3.8 pypy-3.8 3.9 pypy-3.9 3.10 3.11" exclude_list: "windows:pypy-3.8 windows:pypy-3.9" # disable_list: "windows:3.11" @@ -18,7 +19,8 @@ jobs: with: name: Platform python_version_list: "" - system_list: "ubuntu windows macos mingw32 mingw64 clang64 ucrt64" + system_list: "ubuntu" +# system_list: "ubuntu windows macos mingw32 mingw64 clang64 ucrt64" UnitTesting: uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@cov @@ -51,11 +53,8 @@ jobs: PublishCoverageResults: uses: pyTooling/Actions/.github/workflows/PublishCoverageResults.yml@cov needs: + - UnitTesting - Coverage - - PlatformTesting2 - with: - python_version: ${{ needs.UnitTestingParams.outputs.python_version }} - artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }} secrets: codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} @@ -66,8 +65,7 @@ jobs: with: python_version: ${{ needs.UnitTestingParams.outputs.python_version }} commands: | - touch pyTooling/__init__.py - mypy --html-report htmlmypy -p pyTooling + mypy --html-report htmlmypy -p pyDummy html_report: 'htmlmypy' html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} @@ -75,8 +73,6 @@ jobs: uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@cov needs: - UnitTesting - - PerformanceTesting - - Benchmarking Package: uses: pyTooling/Actions/.github/workflows/Package.yml@cov @@ -143,13 +139,12 @@ jobs: needs: - UnitTestingParams - UnitTesting - - PerformanceTesting - - Benchmarking - PlatformTesting - Coverage - StaticTypeCheck # - BuildTheDocs - PublishToGitHubPages + - PublishCoverageResults - PublishTestResults with: package: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} diff --git a/pyDummy/__init__.py b/pyDummy/__init__.py index f274032..f5bf0e0 100644 --- a/pyDummy/__init__.py +++ b/pyDummy/__init__.py @@ -36,7 +36,10 @@ __version__ = "0.1.0" __keywords__ = ["dummy"] __issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues" +from pyTooling.Decorators import export + +@export class Application: _value: int diff --git a/requirements.txt b/requirements.txt index e69de29..4ad7e0b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1 @@ +pyTooling >= 5.0.0, <6.0.0 diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py new file mode 100644 index 0000000..896d194 --- /dev/null +++ b/tests/unit/__init__.py @@ -0,0 +1,31 @@ +# ==================================================================================================================== # +# _____ _ _ _ _ _ # +# _ __ _ |_ _|__ ___ | (_)_ __ __ _ / \ ___| |_(_) ___ _ __ ___ # +# | '_ \| | | || |/ _ \ / _ \| | | '_ \ / _` | / _ \ / __| __| |/ _ \| '_ \/ __| # +# | |_) | |_| || | (_) | (_) | | | | | | (_| |_ / ___ \ (__| |_| | (_) | | | \__ \ # +# | .__/ \__, ||_|\___/ \___/|_|_|_| |_|\__, (_)_/ \_\___|\__|_|\___/|_| |_|___/ # +# |_| |___/ |___/ # +# ==================================================================================================================== # +# Authors: # +# Patrick Lehmann # +# # +# License: # +# ==================================================================================================================== # +# Copyright 2017-2023 Patrick Lehmann - Bötzingen, Germany # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +# # +# SPDX-License-Identifier: Apache-2.0 # +# ==================================================================================================================== # +# +"""Test code for pyTooling.""" diff --git a/tests/unit/requirements.txt b/tests/unit/requirements.txt new file mode 100644 index 0000000..3c8d7e7 --- /dev/null +++ b/tests/unit/requirements.txt @@ -0,0 +1 @@ +-r ../requirements.txt