Drop empty allow-input list items
Action self-check / smoke-test / failing-job (push) Failing after 4s
Action self-check / smoke-test / succeeding-job (push) Successful in 2s
Action self-check / smoke-test / skipped-job (push) Skipped
Action self-check / smoke-test / partially-failing-partially-skipped-matrix (0) (push) Successful in 1s
Action self-check / smoke-test / partially-failing-partially-skipped-matrix (1) (push) Failing after 4s
Action self-check / smoke-test / partially-failing-partially-skipped-matrix (2) (push) Successful in 3s
Action self-check / smoke-test / wait-for-success (push) Canceled after 0s
Action self-check / smoke-test / wait-for-failure (push) Canceled after 0s
Action self-check / smoke-test / wait-for-both (push) Canceled after 0s
Action self-check / smoke-test / allow-some-failures (push) Canceled after 0s
Action self-check / smoke-test / allow-some-failures-str (push) Canceled after 0s
Action self-check / smoke-test / allow-failures-n-skips (push) Canceled after 0s
Action self-check / smoke-test / allow-skips (push) Canceled after 0s
Action self-check / smoke-test / allow-partials (push) Canceled after 0s
Action self-check / smoke-test / check (push) Canceled after 0s
Action self-check / smoke-test / failing-job (push) Failing after 4s
Action self-check / smoke-test / succeeding-job (push) Successful in 2s
Action self-check / smoke-test / skipped-job (push) Skipped
Action self-check / smoke-test / partially-failing-partially-skipped-matrix (0) (push) Successful in 1s
Action self-check / smoke-test / partially-failing-partially-skipped-matrix (1) (push) Failing after 4s
Action self-check / smoke-test / partially-failing-partially-skipped-matrix (2) (push) Successful in 3s
Action self-check / smoke-test / wait-for-success (push) Canceled after 0s
Action self-check / smoke-test / wait-for-failure (push) Canceled after 0s
Action self-check / smoke-test / wait-for-both (push) Canceled after 0s
Action self-check / smoke-test / allow-some-failures (push) Canceled after 0s
Action self-check / smoke-test / allow-some-failures-str (push) Canceled after 0s
Action self-check / smoke-test / allow-failures-n-skips (push) Canceled after 0s
Action self-check / smoke-test / allow-skips (push) Canceled after 0s
Action self-check / smoke-test / allow-partials (push) Canceled after 0s
Action self-check / smoke-test / check (push) Canceled after 0s
This commit is contained in:
@@ -47,10 +47,18 @@ def parse_as_list(input_text):
|
||||
return [s.strip() for s in input_text.split(',')]
|
||||
|
||||
|
||||
def drop_empty_from_list(a_list):
|
||||
return [list_element for list_element in a_list if list_element]
|
||||
|
||||
|
||||
def parse_inputs(raw_allowed_failures, raw_allowed_skips, raw_jobs):
|
||||
"""Normalize the action inputs by turning them into data."""
|
||||
allowed_failures_input = parse_as_list(raw_allowed_failures)
|
||||
allowed_skips_input = parse_as_list(raw_allowed_skips)
|
||||
allowed_failures_input = drop_empty_from_list(
|
||||
parse_as_list(raw_allowed_failures),
|
||||
)
|
||||
allowed_skips_input = drop_empty_from_list(
|
||||
parse_as_list(raw_allowed_skips),
|
||||
)
|
||||
|
||||
return {
|
||||
'allowed_failures': allowed_failures_input,
|
||||
|
||||
Reference in New Issue
Block a user