Skip to content

Commit

Permalink
CI: Add latest dependencies test workflow (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Jun 25, 2024
1 parent 875df16 commit 1869751
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,55 @@ jobs:
micromamba run -n test sphinx-build -b html docs/ docs/_build/
- uses: codecov/codecov-action@v4


test_latest:
needs: linting
name: Test latest dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Conda
uses: mamba-org/setup-micromamba@v1
with:
init-shell: bash
environment-name: test
create-args: >-
python=3.10
proj
libgdal
cython
netcdf4
- name: Install Env
shell: bash
run: |
micromamba run -n test python -m pip install \
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
--no-deps --pre --upgrade \
numpy \
pandas \
scipy;
micromamba run -n test python -m pip install --upgrade \
git+https://github.com/geopandas/pyogrio.git@main \
git+https://github.com/rasterio/rasterio.git@main \
git+https://github.com/pyproj4/pyproj.git@main \
git+https://github.com/geopandas/geopandas.git@main \
git+https://github.com/pydata/xarray.git@main \
git+https://github.com/opendatacube/odc-geo.git@develop \
git+https://github.com/corteva/rioxarray.git@master;
micromamba run -n test python -m pip install -e .[all]
micromamba run -n test python -m pip install -r requirements/test.txt
- name: Check and Log Environment
shell: bash
run: |
micromamba run -n test python -V
micromamba run -n test python -c "import geocube; geocube.show_versions();"
micromamba info
- name: Test
shell: bash
run: |
micromamba run -n test pytest --cov-report term-missing --cov=geocube --cov-report xml

0 comments on commit 1869751

Please sign in to comment.