diff --git a/.github/workflows/notebooks.yml b/.github/workflows/notebooks.yml index 73b5455c..194a2020 100644 --- a/.github/workflows/notebooks.yml +++ b/.github/workflows/notebooks.yml @@ -44,6 +44,15 @@ jobs: pip install -U pip pip install -r requirements.txt + if [ "$RUNNER_OS" == "macOS" ]; then + pip install --config-settings="--global-option=build_ext" \ + --config-settings="--global-option=-I$(brew --prefix graphviz)/include/" \ + --config-settings="--global-option=-L$(brew --prefix graphviz)/lib/" \ + pygraphviz + elif [ "$RUNNER_OS" == "Linux" ]; then + pip install pygraphviz + fi + - name: Lint with precommit run: | pip install pre-commit diff --git a/requirements.txt b/requirements.txt index 6fa8a033..72537683 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,3 @@ sphinx-book-theme jupytext black pyupgrade - -# Notebook requirements -pygraphviz -