26 lines
693 B
Python
26 lines
693 B
Python
"""CI multi-tier trigger runner and verification script."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import subprocess
|
|
import sys
|
|
|
|
|
|
def run_ci_checks() -> int:
|
|
print("=== STEP 1: Static Zero Regex and Schema Policy Check ===")
|
|
res_static = subprocess.run([sys.executable, "tests/scripts/check_zero_regex.py"])
|
|
if res_static.returncode != 0:
|
|
return 1
|
|
|
|
print("\n=== STEP 2: Pytest Automated Suites ===")
|
|
res_pytest = subprocess.run([sys.executable, "-m", "pytest", "tests/", "-v"])
|
|
if res_pytest.returncode != 0:
|
|
return 1
|
|
|
|
print("\n=== ALL CI QUALITY GATES PASSED SUCCESSFULLY ===")
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
sys.exit(run_ci_checks())
|