mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Install Python package and readout embedded package version.
This commit is contained in:
22
.github/workflows/ExtractConfiguration.yml
vendored
22
.github/workflows/ExtractConfiguration.yml
vendored
@@ -145,6 +145,12 @@ jobs:
|
||||
namespace = "${{ inputs.package_namespace }}".strip()
|
||||
name = "${{ inputs.package_name }}".strip()
|
||||
|
||||
print(dedent(f"""\
|
||||
INPUTS:
|
||||
package_namespace: {namespace}
|
||||
package_name: {name}
|
||||
"""))
|
||||
|
||||
if namespace == "" or namespace == ".":
|
||||
fullname = f"{name}"
|
||||
directory = f"{name}"
|
||||
@@ -154,6 +160,13 @@ jobs:
|
||||
directory = f"{namespace}/{name}"
|
||||
mypy_prepare_command = f"touch {namespace}/__init__.py"
|
||||
|
||||
print(dedent(f"""\
|
||||
OUTPUTS:
|
||||
package_fullname: {fullname}
|
||||
package_directory: {directory}
|
||||
mypy_prepare_command: {mypy_prepare_command}
|
||||
"""))
|
||||
|
||||
github_output = Path(getenv("GITHUB_OUTPUT"))
|
||||
print(f"GITHUB_OUTPUT: {github_output}")
|
||||
with github_output.open("a+", encoding="utf-8") as f:
|
||||
@@ -234,4 +247,11 @@ jobs:
|
||||
coverage_report_json={coverageJSONFile.as_posix()}
|
||||
"""))
|
||||
|
||||
print(f"DEBUG:\n unittest xml: {unittestXMLFile}\n merged unittest xml: {mergedUnittestXMLFile}\n coverage html: {coverageHTMLDirectory}\n coverage xml: {coverageXMLFile}\n coverage json: {coverageJSONFile}")
|
||||
print(dedent(f"""\
|
||||
DEBUG:
|
||||
unittest xml: {unittestXMLFile}
|
||||
merged unittest xml: {mergedUnittestXMLFile}
|
||||
coverage html: {coverageHTMLDirectory}
|
||||
coverage xml: {coverageXMLFile}
|
||||
coverage json: {coverageJSONFile}
|
||||
"""))
|
||||
|
||||
Reference in New Issue
Block a user