Skip to content

Commit

Permalink
Merge pull request #33 from siliconcompiler/disable-print
Browse files Browse the repository at this point in the history
only print passed if rules were checked
  • Loading branch information
gadfort committed Apr 19, 2024
2 parents 63be528 + 7304a27 commit 7f0c8c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Lint
on:
# Runs on all pushes to branches
push:
# Runs on all PRs
pull_request:
# Manual Dispatch
Expand Down
9 changes: 4 additions & 5 deletions scgallery/gallery.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,19 +641,18 @@ def summary(self):
print("Run summary:")
failed = False
for status in self.__status:
print(f"Design: {status['chip'].design}")
print(f"PDK: {status['pdk']}")
print(f"Mainlib: {status['mainlib']}")
print(f" Design: {status['chip'].design} on {status['pdk']} pdk "
f"with mainlib {status['mainlib']}")
errors = status['errors']
if errors:
failed = True
for error in errors:
print(f" {error}")
elif errors is None:
# Mark as failure
# Mark as failed since rules are missing
failed = True
else:
print(" Passed")
print(" Rules check passed")
if not failed:
print('Run passed')

Expand Down

0 comments on commit 7f0c8c2

Please sign in to comment.