MCPcopy
hub / github.com/subframe7536/maple-font / is_ci

Function is_ci

source/py/task/_utils.py:40–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def is_ci():
41 ci_envs = [
42 "JENKINS_HOME",
43 "TRAVIS",
44 "CIRCLECI",
45 "GITHUB_ACTIONS",
46 "GITLAB_CI",
47 "TF_BUILD",
48 ]
49
50 for env in ci_envs:
51 if environ.get(env):
52 return True
53
54 return False

Callers 4

mainFunction · 0.90
runFunction · 0.90
download_fileFunction · 0.90
publishFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected