CI: add specific job rules

This commit is contained in:
Chen Yudong
2022-07-08 17:47:59 +08:00
parent 35f755438b
commit 69e15827c9
8 changed files with 366 additions and 12 deletions

View File

@@ -316,7 +316,10 @@ class IdfPytestEmbedded:
item.add_marker(_target)
# filter all the test cases with "nightly_run" marker
if os.getenv('NIGHTLY_RUN') == '1':
if os.getenv('INCLUDE_NIGHTLY_RUN') == '1':
# Do not filter nightly_run cases
pass
elif os.getenv('NIGHTLY_RUN') == '1':
items[:] = [
item for item in items if 'nightly_run' in item_marker_names(item)
]