From 580ba89fd858e5e10fe158a70762efca11e11768 Mon Sep 17 00:00:00 2001 From: maximlt Date: Tue, 21 Jan 2025 22:37:56 +0100 Subject: [PATCH] fix the tests --- .github/workflows/test.yaml | 4 ++-- pixi.toml | 7 +++++-- pyproject.toml | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c82bfd830..a828ef18d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -181,8 +181,8 @@ jobs: run: | python --version --version python -m pip list - - name: bokeh sampledata - run: bokeh sampledata + - name: download datasets + run: python scripts/download_data.py - name: unit tests run: pytest -v hvplot --cov=hvplot --cov-append - name: unit tests geo diff --git a/pixi.toml b/pixi.toml index 2c315f343..1bac8c91c 100644 --- a/pixi.toml +++ b/pixi.toml @@ -18,7 +18,7 @@ default = [ ] [environments.test-39] -features = ["py39", "required", ] +features = ["py39", "required", "test-core", "test", "example", "geo", "graphviz", "test-example"] no-default-feature = true [environments.test-310] @@ -162,6 +162,7 @@ scipy = "*" xarray = "*" # bokeh_sampledata = "*" (only available starting from Python 3.10) psutil = "*" +cftime = "*" [feature.test-example.dependencies] # Dependencies required to run the examples notebooks. @@ -203,11 +204,13 @@ spatialpandas = ">=0.4.3" pygraphviz = "*" [feature.test.tasks] -test-unit = 'pytest -v hvplot' test-unit-geo = 'pytest -v hvplot --geo' test-unit-cov = 'pytest -v hvplot --cov=hvplot --cov-append' test-unit-geo-cov = 'pytest -v hvplot --geo --cov=hvplot --cov-append' +[feature.test-core.tasks] +test-unit = 'pytest -v hvplot' + [feature.test-example.tasks] test-example = 'pytest -n logical --dist loadscope --nbval-lax -p no:python' diff --git a/pyproject.toml b/pyproject.toml index df82750a9..528d55b29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,6 +67,7 @@ tests-core = [ "xarray", "bokeh_sampledata; python_version >= '3.10'", "psutil", + "cftime", ] # Optional tests dependencies, i.e. one should be able # to run and pass the test suite without installing any