Testing pysteps

Testing pysteps#

The pysteps distribution includes a small test suite for some of the modules. The tests are run with pytest, which is installed together with the other development dependencies when you set up the environment with uv (see Contributing to pysteps):

uv sync --extra optional

Example data#

The build-in tests require the pysteps example data installed. See the installation instructions in the Installing the example data section.

Run the tests#

From the root of the pysteps repository, run:

uv run pytest --pyargs pysteps

uv sync already compiles the Cython extensions, so no separate build step is needed.