Skip to content

Commit 292c81d

Browse files
added skip checks
1 parent a51f7d9 commit 292c81d

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/precheck_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
matrix:
1313
include:
1414
- repo: 'caravel_user_project'
15-
skip_checks: 'Default GpioDefines'
15+
skip_checks: 'default gpio_defines'
1616
- repo: 'caravel_user_mini'
1717
skip_checks: ''
1818
- repo: 'caravel_user_sram'
19-
skip_checks: 'GpioDefines LVS'
19+
skip_checks: 'gpio_defines lvs'
2020
- repo: 'caravel_user_project_analog'
21-
skip_checks: 'Default GpioDefines'
21+
skip_checks: 'default gpio_defines lvs'
2222
- repo: 'openframe_timer_example'
2323
skip_checks: ''
2424
fail-fast: false

mpw_precheck.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ def main(*args, **kwargs):
130130
logging.critical("`GOLDEN_CARAVEL` environment variable is not set. Please set it to point to absolute path to the golden caravel")
131131
sys.exit(1)
132132

133-
all_checks = list(private_checks.keys()) if args.private else list(open_source_checks.keys())
134-
sequence = args.checks if args.checks else all_checks
135-
136-
# Remove skip_checks from sequence
137-
if args.skip_checks:
138-
sequence = [check for check in sequence if check not in args.skip_checks]
133+
all_checks = [check.lower() for check in (private_checks.keys() if args.private else open_source_checks.keys())]
134+
input_checks = [check.lower() for check in args.checks] if args.checks else all_checks
135+
skip_checks = [check.lower() for check in args.skip_checks] if args.skip_checks else []
136+
input_checks = [check for check in input_checks if check in all_checks]
137+
skip_checks = [check for check in skip_checks if check in all_checks]
138+
sequence = [check for check in input_checks if check not in skip_checks]
139139

140140
main(input_directory=args.input_directory,
141141
output_directory=output_directory,

0 commit comments

Comments
 (0)