Skip to content

Commit

Permalink
ci: Ignore dot subprocess error in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jul 14, 2024
1 parent 5c154b3 commit 39a1174
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: git fetch --depth=1 --tags

- name: Set up Graphviz
uses: ts-graphviz/setup-graphviz@v1
uses: ts-graphviz/setup-graphviz@v2

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
6 changes: 5 additions & 1 deletion scripts/gen_structure_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
def _render_call_graph(module: Path) -> None:
buffer = StringIO()
code2flow(str(module), buffer)
svg = subprocess.check_output(["dot", "-Tsvg"], input=buffer.getvalue(), text=True) # noqa: S603, S607
try:
svg = subprocess.check_output(["dot", "-Tsvg"], input=buffer.getvalue(), text=True) # noqa: S603, S607
except subprocess.CalledProcessError:
# The subprocess dies with SIGSEGV in GHA...
return
if 'class="node"' not in svg:
print("")
else:
Expand Down

0 comments on commit 39a1174

Please sign in to comment.