Skip to content

Commit

Permalink
Update tox dependencies to include graphivz (#733)
Browse files Browse the repository at this point in the history
PR #674 had an issue with automated checks and needs the `graphviz`
package to run `plot_circuit_layout()` function.

---------

Co-authored-by: ABBY CROSS <across@us.ibm.com>
Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk>
  • Loading branch information
3 people authored Jan 31, 2024
1 parent ff3500a commit fc3a3de
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,20 @@ jobs:
files: docs/**/*.ipynb
separator: "\n"

- name: Check for notebooks that require LaTeX
id: latex-changed-files
- name: Check for notebooks that require Linux
id: linux-changed-files
uses: tj-actions/changed-files@af2816c65436325c50621100d67f6e853cd1b0f1
with:
# Add your notebook to this list if it needs latex to run
# Add your notebook to this list if it needs latex or graphviz to run
files: |
docs/build/circuit-visualization.ipynb
docs/transpile/transpiler-stages.ipynb
- name: Install LaTeX dependencies
if: steps.latex-changed-files.outputs.any_changed == 'true'
- name: Install Linux dependencies
if: steps.linux-changed-files.outputs.any_changed == 'true'
run: |
sudo apt-get update
sudo apt-get install texlive-pictures texlive-latex-extra poppler-utils
sudo apt-get install texlive-pictures texlive-latex-extra poppler-utils graphviz
- name: Install Python packages
# This is to save our account in the next step. Note that the
Expand Down

0 comments on commit fc3a3de

Please sign in to comment.