Skip to content

Commit

Permalink
Merge pull request #20 from dcs4cop/tejas-xxx-open-with-bbox-bug
Browse files Browse the repository at this point in the history
fixed the bug in open_params with bbox
  • Loading branch information
TejasMorbagal authored Feb 3, 2023
2 parents 0701e38 + 933741a commit e2132ba
Show file tree
Hide file tree
Showing 5 changed files with 2,935 additions and 2,032 deletions.
40 changes: 7 additions & 33 deletions .github/workflows/unitest-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,15 @@ jobs:
- name: checkout xcube-cmems
uses: actions/checkout@v3

- name: setup conda env
uses: conda-incubator/setup-miniconda@v2
- name: Set up MicroMamba
uses: mamba-org/provision-with-micromamba@main
with:
mamba-version: "*"
channels: conda-forge
activate-environment: xcube-cmems
cache-env: true

- name: Install xcube and xcube-cmems
- name: Run unit tests
shell: bash -l {0}
run: |
git clone https://github.com/dcs4cop/xcube $HOME/runner/work/xcube
cd $HOME
cd $HOME/runner/work/xcube
conda activate xcube-cmems
mamba env update --name xcube-cmems --file environment.yml
python setup.py develop
cd /home/runner/work/xcube-cmems/xcube-cmems
grep -v "^ - xcube" environment.yml > env_no_xcube.yml
mamba env update --name xcube-cmems --file env_no_xcube.yml
python setup.py develop
conda list -n xcube-cmems
- name: Lint with flake8
shell: bash -l {0}
run: |
conda activate xcube-cmems
mamba install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run unit tests
shell: bash -l {0}
run: |
pytest --cov=./ --cov-report=xml
ls
pytest
8 changes: 5 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ channels:
- defaults
dependencies:
# Required
- xcube >= 0.12.1
- pydap
- xcube >=0.12.1
- pydap >=3.3.0
- lxml >=4.9.1
- owslib
- pyproj
- mock
- zarr
# for testing
- mock
- pytest
Loading

0 comments on commit e2132ba

Please sign in to comment.