From abc889d4fd8f5c104f3367a788e3c766138b25fd Mon Sep 17 00:00:00 2001 From: J08nY Date: Tue, 4 Jun 2024 17:26:00 +0200 Subject: Add testing of (some) notebooks. --- .github/workflows/test.yml | 3 +++ Makefile | 3 +++ notebook | 2 +- pyproject.toml | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e01659..8a31b88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,6 +55,9 @@ jobs: - name: Test run: | make test + - name: Test notebooks + run: | + make test-notebooks - name: Code coverage uses: codecov/codecov-action@v4 if: ${{ matrix.python-version == 3.9 }} diff --git a/Makefile b/Makefile index 188c3bc..a7290ee 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ test-plots: test-all: pytest --cov=pyecsca +test-notebooks: + pytest -m "not slow" --nbmake --cov=pyecsca notebook/simulation.ipynb notebook/visualization.ipynb + typecheck: mypy --namespace-packages -p pyecsca --ignore-missing-imports --show-error-codes --check-untyped-defs diff --git a/notebook b/notebook index 5ec7ce7..4f04530 160000 --- a/notebook +++ b/notebook @@ -1 +1 @@ -Subproject commit 5ec7ce7c9c26f21217b024e1321469f9ee976884 +Subproject commit 4f04530c9136c50523974cf1b8e6e333e6a5982e diff --git a/pyproject.toml b/pyproject.toml index d8abb66..1972bfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,7 @@ "holoviews", "bokeh", "matplotlib", + "seaborn", "datashader", "dask[dataframe]", "xarray", @@ -66,7 +67,7 @@ "gmp" = ["gmpy2"] "pari" = ["cysignals", "cypari2"] "dev" = ["mypy", "flake8", "interrogate", "pyinstrument", "black", "types-setuptools", "pydocstyle"] - "test" = ["pytest>=7.0.0", "coverage", "pytest-cov", "pytest-sugar", "pytest-mock"] + "test" = ["pytest>=7.0.0", "coverage", "pytest-cov", "pytest-sugar", "pytest-mock", "nbmake"] "doc" = ["sphinx", "sphinx-autodoc-typehints", "nbsphinx", "sphinx-paramlinks", "sphinx_design", "alabaster>=0.7.16"] [tool.setuptools.packages.find] -- cgit v1.3.1