diff --git a/.github/workflows/full_tests.yml b/.github/workflows/full_tests.yml index 15cda73e..b2d5b9c9 100644 --- a/.github/workflows/full_tests.yml +++ b/.github/workflows/full_tests.yml @@ -28,7 +28,8 @@ jobs: - name: Install package run: | python -m pip install --upgrade pip - pip install .[test] + pip install . + pip install --group test - name: Pytest run: | pytest -m "not library" -v diff --git a/.github/workflows/full_tests_codecov.yml b/.github/workflows/full_tests_codecov.yml index c48715ab..44614bd2 100644 --- a/.github/workflows/full_tests_codecov.yml +++ b/.github/workflows/full_tests_codecov.yml @@ -20,7 +20,8 @@ jobs: - name: Install package run: | python -m pip install --upgrade pip - pip install .[test] + pip install . + pip install --group test - name: Pytest run: | pytest --cov=probeinterface --cov-report xml:./coverage.xml diff --git a/.readthedocs.yaml b/.readthedocs.yaml index ea08c7d7..dd57770c 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,16 +1,14 @@ version: 2 build: - os: ubuntu-20.04 + os: ubuntu-24.04 tools: python: "3.10" + jobs: + install: + - pip install -U pip + - pip install . + - pip install --group docs sphinx: configuration: doc/conf.py - -python: - install: - - method: pip - path: . - extra_requirements: - - docs diff --git a/pyproject.toml b/pyproject.toml index 0474a124..fa605272 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ build-backend = "hatchling.build" [tool.hatch.build] sources = ["src"] -[project.optional-dependencies] +[dependency-groups] test = [ "jsonschema", @@ -47,18 +47,26 @@ test = [ "scipy", "pandas", "h5py", - "zarr>=2.16.0,<3.0.0" + "zarr>=2.16.0,<3.0.0", ] docs = [ "pillow", "sphinx-gallery", "sphinx_rtd_theme", - "matplotlib==3.2.2", + "matplotlib", "scipy", "pandas", ] +dev = [ + {include-group = "test"}, + {include-group = "docs"}, + "pre-commit", + "tqdm", # used in resources/generate_cambridgeneurotech_library.py + "shapely", # used in resources/generate_cambridgeneurotech_library.py +] + [tool.pytest.ini_options] markers = [ "library",