diff --git a/.github/workflows/unittest-workflow.yml b/.github/workflows/unittest-workflow.yml index d47e274..e222ed0 100644 --- a/.github/workflows/unittest-workflow.yml +++ b/.github/workflows/unittest-workflow.yml @@ -23,14 +23,13 @@ jobs: - name: Set up MicroMamba uses: mamba-org/setup-micromamba@v1 with: - environment-file: xcube-stac/environment_workflow.yml + environment-file: xcube-stac/environment.yml - - name: Install xcube and start xcube server + - name: Start xcube server shell: bash -l {0} run: | cd /home/runner/work/xcube-stac/xcube-stac/xcube ls - pip install . xcube serve -c examples/serve/demo/config.yml & - name: Run unit tests diff --git a/README.md b/README.md index 8c398f7..da13683 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # xcube-stac -[![Build Status](https://github.com/xcube-dev/xcube-stac/actions/workflows/unittest-workflow.yml/badge.svg?branch=main)](https://github.com/xcube-dev/xcube-smos/actions) -[![codecov](https://codecov.io/gh/xcube-dev/xcube-stack/branch/main/graph/badge.svg)](https://app.codecov.io/gh/xcube-dev/xcube-stac) +[![Build Status](https://github.com/xcube-dev/xcube-stac/actions/workflows/unittest-workflow.yml/badge.svg?branch=main)](https://github.com/xcube-dev/xcube-stac/actions) +[![codecov](https://codecov.io/gh/xcube-dev/xcube-stac/graph/badge.svg?token=ktcp1maEgz)](https://codecov.io/gh/xcube-dev/xcube-stac) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![License](https://img.shields.io/github/license/dcs4cop/xcube-smos)](https://github.com/xcube-dev/xcube-stac/blob/main/LICENSE) diff --git a/environment.yml b/environment.yml index 547d29f..cc24c3e 100644 --- a/environment.yml +++ b/environment.yml @@ -10,7 +10,7 @@ dependencies: - pystac - pystac-client - xarray - - xcube + - xcube >= 1.7.0 # for testing - black - flake8 diff --git a/environment_workflow.yml b/environment_workflow.yml deleted file mode 100644 index b96f164..0000000 --- a/environment_workflow.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: xcube-stac -channels: - - conda-forge - - defaults -dependencies: - # Python - - python >=3.9 - # Required by xcube - - affine >=2.2 - - botocore >=1.34.51 - - cftime >=1.6.3 - - click >=8.0 - - cmocean >=2.0 - - dask >=2021.6 - - dask-image >=0.6 - - deprecated >=1.2 - - distributed >=2021.6 - - fiona >=1.8 - - fsspec >=2021.6 - - gdal >=3.0 - - geopandas >=0.8 - - jdcal >=1.4 - - jsonschema >=3.2 - - mashumaro - - matplotlib-base >=3.8.3 - - netcdf4 >=1.5 - - numba >=0.52 - - numcodecs >=0.12.1 - - numpy >=1.16 - - pandas >=1.3 - - pillow >=6.0 - - pyjwt >=1.7 - - pyproj >=3.0 - - pyyaml >=5.4 - - rasterio >=1.2 - - requests >=2.25 - - rfc3339-validator >=0.1 # for python-jsonschema date-time format validation - - rioxarray >=0.11 - - s3fs >=2021.6 - - setuptools >=41.0 - - shapely >=1.6 - - tornado >=6.0 - - urllib3 >=1.26 - - xarray >=2022.6 - - zarr >=2.11 -# Required by xcube-stac - - odc-geo - - odc-stac - - pystac - - pystac-client - # for testing - - black - - flake8 - - pytest - - pytest-cov - - pytest-recording diff --git a/test/test_store.py b/test/test_store.py index 02c3879..454eb74 100644 --- a/test/test_store.py +++ b/test/test_store.py @@ -503,7 +503,7 @@ def test_open_data_xcube_server(self): ) ds = mlds.base_dataset self.assertIsInstance(mlds, MultiLevelDataset) - self.assertEqual(1, mlds.num_levels) + self.assertEqual(3, mlds.num_levels) self.assertIsInstance(ds, xr.Dataset) self.assertCountEqual( [