From ae0c0cf4d723ec5e7cbafa77b760db90833650b0 Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Wed, 16 Oct 2024 13:30:41 +0200 Subject: [PATCH] update docs deps --- .github/workflows/test.yml | 26 ++++++++++++++++++++------ pyproject.toml | 2 +- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbd5006..2127cea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,16 +22,30 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -e .[test,dev] - - name: Linter + pip install -e .[test,toolkit] + - name: Test + run: | + pytest + linters: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + cache: 'pip' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[dev] + - name: Linters run: | black --check src tests ruff check . - name: Annotate locations with typos + if: always() uses: codespell-project/codespell-problem-matcher@v1 - name: Codespell + if: always() uses: codespell-project/actions-codespell@v2 - # Run tests - - name: Test - run: | - pytest diff --git a/pyproject.toml b/pyproject.toml index 1ffae4a..8218cdf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ dependencies = [ # Optional [project.optional-dependencies] # Optional dev = ["black", "ruff", "isort"] test = ["pytest", "pytest-cov", "pytest-sugar", "pytest-xdist"] -doc = ["myst-parser", "sphinx-copybutton","sphinx-gallery","sphinx-book-theme"] +doc = ["myst-parser", "sphinx-copybutton","sphinx-gallery","sphinx-book-theme","matplotlib", "pysap-fmri", "ipywidgets"] toolkit = [ "matplotlib", "pysap-fmri"] # List URLs that are relevant to your project # This field corresponds to the "Project-URL" and "Home-Page" metadata fields: