Fixed Workflow syntax.

This commit is contained in:
Patrick Lehmann
2023-10-02 19:08:43 +02:00
parent d754745237
commit 60967bdde1
6 changed files with 49 additions and 14 deletions

View File

@@ -29,6 +29,10 @@ on:
required: false required: false
default: 'artifacts/**/*.xml' default: 'artifacts/**/*.xml'
type: string type: string
secrets:
codacy_token:
description: 'Token to push result to codacy.'
required: true
jobs: jobs:
PublishTestResults: PublishTestResults:

View File

@@ -1,4 +1,4 @@
name: Verification Pipeline name: Verification of Complete Pipeline
on: on:
push: push:
@@ -8,8 +8,9 @@ jobs:
UnitTestingParams: UnitTestingParams:
uses: pyTooling/Actions/.github/workflows/Parameters.yml@cov uses: pyTooling/Actions/.github/workflows/Parameters.yml@cov
with: with:
name: pyTooling name: pyDummy
python_version_list: "3.7 3.8 pypy-3.8 3.9 pypy-3.9 3.10 3.11" 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" exclude_list: "windows:pypy-3.8 windows:pypy-3.9"
# disable_list: "windows:3.11" # disable_list: "windows:3.11"
@@ -18,7 +19,8 @@ jobs:
with: with:
name: Platform name: Platform
python_version_list: "" 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: UnitTesting:
uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@cov uses: pyTooling/Actions/.github/workflows/UnitTesting.yml@cov
@@ -51,11 +53,8 @@ jobs:
PublishCoverageResults: PublishCoverageResults:
uses: pyTooling/Actions/.github/workflows/PublishCoverageResults.yml@cov uses: pyTooling/Actions/.github/workflows/PublishCoverageResults.yml@cov
needs: needs:
- UnitTesting
- Coverage - Coverage
- PlatformTesting2
with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
secrets: secrets:
codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }} codacy_token: ${{ secrets.CODACY_PROJECT_TOKEN }}
@@ -66,8 +65,7 @@ jobs:
with: with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }} python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
commands: | commands: |
touch pyTooling/__init__.py mypy --html-report htmlmypy -p pyDummy
mypy --html-report htmlmypy -p pyTooling
html_report: 'htmlmypy' html_report: 'htmlmypy'
html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }} html_artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }}
@@ -75,8 +73,6 @@ jobs:
uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@cov uses: pyTooling/Actions/.github/workflows/PublishTestResults.yml@cov
needs: needs:
- UnitTesting - UnitTesting
- PerformanceTesting
- Benchmarking
Package: Package:
uses: pyTooling/Actions/.github/workflows/Package.yml@cov uses: pyTooling/Actions/.github/workflows/Package.yml@cov
@@ -143,13 +139,12 @@ jobs:
needs: needs:
- UnitTestingParams - UnitTestingParams
- UnitTesting - UnitTesting
- PerformanceTesting
- Benchmarking
- PlatformTesting - PlatformTesting
- Coverage - Coverage
- StaticTypeCheck - StaticTypeCheck
# - BuildTheDocs # - BuildTheDocs
- PublishToGitHubPages - PublishToGitHubPages
- PublishCoverageResults
- PublishTestResults - PublishTestResults
with: with:
package: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }} package: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}

View File

@@ -36,7 +36,10 @@ __version__ = "0.1.0"
__keywords__ = ["dummy"] __keywords__ = ["dummy"]
__issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues" __issue_tracker__ = "https://GitHub.com/pyTooling/Actions/issues"
from pyTooling.Decorators import export
@export
class Application: class Application:
_value: int _value: int

View File

@@ -0,0 +1 @@
pyTooling >= 5.0.0, <6.0.0

31
tests/unit/__init__.py Normal file
View File

@@ -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."""

View File

@@ -0,0 +1 @@
-r ../requirements.txt