mirror of
https://github.com/pyTooling/Actions.git
synced 2026-03-04 04:46:56 +08:00
Improved error messages.
This commit is contained in:
2
.github/workflows/ApplicationTesting.yml
vendored
2
.github/workflows/ApplicationTesting.yml
vendored
@@ -114,7 +114,7 @@ jobs:
|
||||
requirementsFile = Path(requirements)
|
||||
|
||||
if not requirementsFile.exists():
|
||||
print(f"::error title=FileNotFoundError::{requirementsFile}")
|
||||
print(f"::error title=FileNotFoundError::Requirements file '{requirementsFile}' doesn't exist.")
|
||||
exit(1)
|
||||
|
||||
print(f"requirements file: {requirementsFile.as_posix()}")
|
||||
|
||||
4
.github/workflows/CompletePipeline.yml
vendored
4
.github/workflows/CompletePipeline.yml
vendored
@@ -210,7 +210,7 @@ jobs:
|
||||
|
||||
versionFile = Path("${{ needs.UnitTestingParams.outputs.package_version_file }}")
|
||||
if not versionFile.exists():
|
||||
print(f"::error title=CompletePipeline::Version file '{versionFile}' not found.")
|
||||
print(f"::error title=CompletePipeline::Version file '{versionFile}' doesn't exist.")
|
||||
exit(1)
|
||||
|
||||
versionInformation = extractVersionInformation(versionFile)
|
||||
@@ -218,7 +218,7 @@ jobs:
|
||||
print(f"from code: {versionInformation.Version}")
|
||||
|
||||
if expectedVersion != versionInformation.Version:
|
||||
print(f"::error title=CompletePipeline::Expected version does not version in Python code.")
|
||||
print(f"::error title=CompletePipeline::Expected version ({expectedVersion}) doesn't match the version in Python code ({versionInformation.Version}).")
|
||||
exit(2)
|
||||
|
||||
# Write jobs to special file
|
||||
|
||||
4
.github/workflows/ExtractConfiguration.yml
vendored
4
.github/workflows/ExtractConfiguration.yml
vendored
@@ -153,7 +153,7 @@ jobs:
|
||||
typingHTMLDirectory = Path(section["html_report"])
|
||||
else:
|
||||
print(f"File '{pyProjectFile}' not found.")
|
||||
print(f"::error title=FileNotFoundError::File '{pyProjectFile}' not found.")
|
||||
print(f"::error title=FileNotFoundError::Python project file '{pyProjectFile}' doesn't exist.")
|
||||
exit(1)
|
||||
|
||||
# Read output paths from '.coveragerc' file
|
||||
@@ -170,7 +170,7 @@ jobs:
|
||||
coverageJSONFile = Path(coverageRCSettings["json"]["output"])
|
||||
else:
|
||||
print(f"File '{coverageRCFile}' not found.")
|
||||
print(f"::error title=FileNotFoundError::File '{coverageRCFile}' not found.")
|
||||
print(f"::error title=FileNotFoundError::Coverage RC file '{coverageRCFile}' doesn't exist.")
|
||||
exit(1)
|
||||
|
||||
unittest_report_xml = {
|
||||
|
||||
2
.github/workflows/UnitTesting.yml
vendored
2
.github/workflows/UnitTesting.yml
vendored
@@ -235,7 +235,7 @@ jobs:
|
||||
requirementsFile = Path(requirements)
|
||||
|
||||
if not requirementsFile.exists():
|
||||
print(f"::error title=FileNotFoundError::{requirementsFile}")
|
||||
print(f"::error title=FileNotFoundError::Requirements file '{requirementsFile}' doesn't exist.")
|
||||
exit(1)
|
||||
|
||||
print(f"requirements file: {requirementsFile.as_posix()}")
|
||||
|
||||
Reference in New Issue
Block a user