Skip to content

Commit

Permalink
new workflow 2
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Jul 11, 2024
1 parent 5002dcf commit 35c14f1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/unittest-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: xcube-dev/xcube
path: xcube

- name: checkout xcube-stac
uses: actions/checkout@v4
Expand All @@ -25,7 +26,7 @@ jobs:
- name: Install xcube
shell: bash -l {0}
run: |
cd /home/runner/work/xcube/xcube
cd /home/runner/work/xcube-stac/xcube
ls
pip install .
Expand Down
41 changes: 21 additions & 20 deletions xcube_stac/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,27 @@

_CATALOG_JSON = "catalog.json"

https_store = new_data_store("https")
_OPEN_DATA_PARAMETERS = {}
_OPEN_DATA_PARAMETERS["dataset:netcdf"] = https_store.get_open_data_params_schema(
opener_id="dataset:netcdf:https"
)
_OPEN_DATA_PARAMETERS["dataset:zarr"] = https_store.get_open_data_params_schema(
opener_id="dataset:zarr:https"
)
_OPEN_DATA_PARAMETERS["dataset:geotiff"] = https_store.get_open_data_params_schema(
opener_id="dataset:geotiff:https"
)
_OPEN_DATA_PARAMETERS["mldataset:geotiff"] = https_store.get_open_data_params_schema(
opener_id="mldataset:geotiff:https"
)
_OPEN_DATA_PARAMETERS["dataset:levels"] = https_store.get_open_data_params_schema(
opener_id="dataset:levels:https"
)
_OPEN_DATA_PARAMETERS["mldataset:levels"] = https_store.get_open_data_params_schema(
opener_id="mldataset:levels:https"
)
_HTTPS_STORE = new_data_store("https")
_OPEN_DATA_PARAMETERS = {
"dataset:netcdf": _HTTPS_STORE.get_open_data_params_schema(
opener_id="dataset:netcdf:https"
),
"dataset:zarr": _HTTPS_STORE.get_open_data_params_schema(
opener_id="dataset:zarr:https"
),
"dataset:geotiff": _HTTPS_STORE.get_open_data_params_schema(
opener_id="dataset:geotiff:https"
),
"mldataset:geotiff": _HTTPS_STORE.get_open_data_params_schema(
opener_id="mldataset:geotiff:https"
),
"dataset:levels": _HTTPS_STORE.get_open_data_params_schema(
opener_id="dataset:levels:https"
),
"mldataset:levels": _HTTPS_STORE.get_open_data_params_schema(
opener_id="mldataset:levels:https"
),
}


class StacDataStore(DataStore):
Expand Down

0 comments on commit 35c14f1

Please sign in to comment.