Skip to content

Commit 683c6d1

Browse files
committed
Install graphviz in CI
To generate the example that has graphviz, the `dot` utility needs to be available, which is not by default. This commit makes the graphviz application available in the CI services that build the example.
1 parent 4b72b50 commit 683c6d1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/CI.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,19 @@ jobs:
145145
with:
146146
python-version: ${{ matrix.python-version }}
147147
pandoc: true
148+
- name: "Install Graphviz on Windows 🗔"
149+
if: runner.os == 'Windows'
150+
run: choco install graphviz
151+
- name: "Install Graphviz on macOS "
152+
if: runner.os == 'macOS'
153+
run: |
154+
brew update
155+
brew install graphviz
156+
- name: "Install Graphviz on Linux 🐧"
157+
if: runner.os == 'Linux'
158+
run: |
159+
sudo apt-get update
160+
sudo apt-get install -y --no-install-recommends graphviz
148161
- name: "Build docs and check for warnings 📖"
149162
shell: bash
150163
run: |

readthedocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ build:
77
os: ubuntu-20.04
88
tools:
99
python: "3.10"
10+
apt_packages:
11+
- graphviz
1012
jobs:
1113
# build the gallery of themes before building the doc
1214
post_install:

0 commit comments

Comments
 (0)