MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / create_job_summary

Function create_job_summary

tools/test_selector.py:835–843  ·  view source on GitHub ↗
(md_path: Path, overwrite: bool = True)

Source from the content-addressed store, hash-verified

833
834
835def create_job_summary(md_path: Path, overwrite: bool = True) -> None:
836 summary_path = os.environ.get("GITHUB_STEP_SUMMARY")
837 if not summary_path:
838 return
839 # Append markdown to the GitHub Actions Job Summary
840 mode = "w" if overwrite else "a"
841 with open(summary_path, mode, encoding="utf-8") as f:
842 f.write(md_path.read_text(encoding="utf-8"))
843 f.write("\n")
844
845
846def write_github_output(res: SelectorResult) -> None:

Callers 1

mainFunction · 0.85

Calls 2

writeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected