ci: tests: do not build all tests when docs/images change
When we change documentation or board images, do not build all tests for this board. Only add more tests when actual code has changed. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
115b811016
commit
062d05645b
@ -57,6 +57,8 @@ def main():
|
||||
files = commit.split("\n")
|
||||
tests = set()
|
||||
for f in files:
|
||||
if f.endswith(".rst"):
|
||||
continue
|
||||
d = os.path.dirname(f)
|
||||
while d:
|
||||
if os.path.exists(os.path.join(d, "testcase.yaml")) or os.path.exists(os.path.join(d, "sample.yaml")):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user