Skip to content

Commit

Permalink
fix the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Jan 21, 2025
1 parent d129218 commit 580ba89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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'

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 580ba89

Please sign in to comment.