Skip to content

Commit

Permalink
MNT: use mamba-org/setup-micromamba (#627)
Browse files Browse the repository at this point in the history
* MNT: use mamba-org/setup-micromamba instead of deprecated mamba-org/provision-with-micromamba
* MNT: Pin GDAL to 3.6 (issue with AutoIdentifyEPSG)
* FIX: WMO number quirk
  • Loading branch information
kmuehlbauer committed May 31, 2023
1 parent 9dfc030 commit 17f876c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 19 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
shell: bash -l {0}
env:
WRADLIB_DATA: ./wradlib-data
CONDA_ENV_FILE: ci/requirements/unittests.yml
strategy:
fail-fast: false
matrix:
Expand All @@ -54,12 +55,15 @@ jobs:
with:
fetch-depth: 0
- name: Install micromamba environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-name: wradlib-tests
environment-file: ci/requirements/unittests.yml
extra-specs: |
python=${{ matrix.python-version }}
environment-file: ${{env.CONDA_ENV_FILE}}
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
create-args: >-
python=${{matrix.python-version}}
conda
- name: Install wradlib
run: |
python -m pip install . --no-deps
Expand Down Expand Up @@ -96,6 +100,7 @@ jobs:
shell: bash -l {0}
env:
WRADLIB_DATA: ./wradlib-data
CONDA_ENV_FILE: ci/requirements/unittests.yml
strategy:
fail-fast: false
matrix:
Expand All @@ -105,12 +110,15 @@ jobs:
with:
fetch-depth: 0
- name: Install micromamba environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-name: wradlib-tests
environment-file: ci/requirements/unittests.yml
extra-specs: |
python=${{ matrix.python-version }}
environment-file: ${{env.CONDA_ENV_FILE}}
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
create-args: >-
python=${{matrix.python-version}}
conda
- name: Install wradlib
run: |
cat "$HOME/.bash_profile"
Expand Down Expand Up @@ -148,6 +156,7 @@ jobs:
shell: powershell
env:
WRADLIB_DATA: ./wradlib-data
CONDA_ENV_FILE: ci/requirements/unittests.yml
strategy:
fail-fast: false
matrix:
Expand All @@ -157,12 +166,16 @@ jobs:
with:
fetch-depth: 0
- name: Install micromamba environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
init-shell: powershell
environment-name: wradlib-tests
environment-file: ci/requirements/unittests.yml
extra-specs: |
python=${{ matrix.python-version }}
environment-file: ${{env.CONDA_ENV_FILE}}
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
create-args: >-
python=${{matrix.python-version}}
conda
- name: Install wradlib
run: |
python -m pip install . --no-deps
Expand Down Expand Up @@ -198,6 +211,7 @@ jobs:
shell: bash -l {0}
env:
WRADLIB_DATA: ./wradlib-data
CONDA_ENV_FILE: ci/requirements/notebooktests.yml
strategy:
fail-fast: false
matrix:
Expand All @@ -207,12 +221,14 @@ jobs:
with:
fetch-depth: 0
- name: Install micromamba environment
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-name: wradlib-tests
environment-file: ci/requirements/notebooktests.yml
extra-specs: |
python=${{ matrix.python-version }}
environment-file: ${{env.CONDA_ENV_FILE}}
cache-environment: true
cache-environment-key: "${{runner.os}}-${{runner.arch}}-py${{env.PYTHON_VERSION}}-${{env.TODAY}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
create-args: >-
python=${{matrix.python-version}}
- name: Install wradlib
run: |
echo "WRADLIB_TAG=`git name-rev --name-only --tags HEAD`" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/notebooktests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- coverage
- dask
- deprecation
- gdal
- gdal<=3.6
- geopandas
- h5py
- h5netcdf
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- coverage
- dask
- deprecation
- gdal
- gdal<=3.6
- h5py
- h5netcdf
- lat_lon_parser
Expand Down
2 changes: 1 addition & 1 deletion wradlib/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_get_radiosonde(self):

try:
with pytest.raises(ValueError):
data, meta = io.misc.get_radiosonde(10411, date)
data, meta = io.misc.get_radiosonde(10412, date)
data, meta = io.misc.get_radiosonde(10410, date)
except urllib.error.HTTPError:
print("HTTPError while retrieving radiosonde data, test skipped!")
Expand Down

0 comments on commit 17f876c

Please sign in to comment.