From 9b827778c0fd9d6d83123263422dd89a5145f554 Mon Sep 17 00:00:00 2001 From: robbievanleeuwen Date: Fri, 6 Oct 2023 14:03:16 +1100 Subject: [PATCH] Update noxfile.py with correct docs dependencies, fix double CI builds --- .github/workflows/tests.yml | 8 ++++++-- .gitignore | 3 --- noxfile.py | 16 +++++++++++++--- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index abf79106..1a6dddb0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,8 +1,12 @@ name: Tests on: - - push - - pull_request + push: + branches: + - master + pull_request: + branches: + - master jobs: tests: diff --git a/.gitignore b/.gitignore index c5542f00..8bd60775 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,3 @@ __pycache__/ # Jupyter Notebook .ipynb_checkpoints - -# temp folder -.temp/ diff --git a/noxfile.py b/noxfile.py index 12903955..8f8583ff 100644 --- a/noxfile.py +++ b/noxfile.py @@ -189,8 +189,13 @@ def docs_build(session: Session) -> None: session.run_always("poetry", "install", "--all-extras", external=True) session.install( - "sphinx", "furo", + "ipykernel", + "ipython", + "ipywidgets", + "nbconvert", + "nbsphinx", + "sphinx", "sphinx-click", "sphinx-copybutton", "sphinxext-opengraph", @@ -213,12 +218,17 @@ def docs(session: Session) -> None: args = session.posargs or ["--open-browser", "docs", "docs/_build"] session.run_always("poetry", "install", "--all-extras", external=True) session.install( - "sphinx", - "sphinx-autobuild", "furo", + "ipykernel", + "ipython", + "ipywidgets", + "nbconvert", + "nbsphinx", + "sphinx", "sphinx-click", "sphinx-copybutton", "sphinxext-opengraph", + "sphinx-autobuild", ) build_dir = Path("docs", "_build")