From c933c65bf8ed69d55f1b65638340ce772d4e5ee2 Mon Sep 17 00:00:00 2001 From: snowman2 Date: Fri, 26 Feb 2021 13:15:42 -0600 Subject: [PATCH] CI: Test build with latest xarray, rasterio, pyproj dependencies --- .github/workflows/tests.yaml | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 85a2daf1..fc2a210b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -73,3 +73,53 @@ jobs: sphinx-build -b html docs/ docs/_build/ - uses: codecov/codecov-action@v1 + + + test_latest: + needs: linting + name: Test latest dependencies + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup Conda + uses: s-weigand/setup-conda@v1 + with: + activate-conda: false + python-version: 3.8 + conda-channels: conda-forge + + - name: Install Env + shell: bash + run: | + conda create -n test python=3.8 proj libgdal cython netcdf4 + source activate test + python -m pip install \ + --index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple \ + --trusted-host pypi.anaconda.org \ + --no-deps --pre --upgrade \ + numpy \ + pandas \ + scipy; + python -m pip install \ + --no-deps --upgrade \ + git+https://github.com/dask/dask.git@master \ + git+https://github.com/dask/distributed.git@master \ + git+https://github.com/mapbox/rasterio.git@master \ + git+https://github.com/pyproj4/pyproj.git@master \ + git+https://github.com/pydata/xarray.git@master; + python -m pip install -e .[all] + + - name: Check and Log Environment + shell: bash + run: | + source activate test + python -V + python -c "import rioxarray; rioxarray.show_versions();" + conda info + + - name: Test + shell: bash + run: | + source activate test + py.test --cov-report term-missing --cov=rioxarray --cov-report xml