MCPcopy Create free account
hub / github.com/acking-you/static_flow / main

Function main

scripts/ci_affected.py:387–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

385
386def sh(cmd):
387 print("+", " ".join(cmd))
388 if os.environ.get("CI_AFFECTED_DRY_RUN", "").lower() in ("1", "true"):
389 return 0
390 return subprocess.run(cmd, cwd=REPO).returncode
391
392
393def run_test():
394 mode = os.environ.get("MODE", "")
395 crates = os.environ.get("CRATES", "").split()
396 if mode == "none" or (mode == "subset" and not crates):
397 print("No affected crates; skipping tests.")
398 return 0
399 if mode == "all":

Callers 1

ci_affected.pyFile · 0.70

Calls 3

detectFunction · 0.85
run_testFunction · 0.85
run_clippyFunction · 0.85

Tested by

no test coverage detected