Skip to content

Commit

Permalink
Dependency update (#616)
Browse files Browse the repository at this point in the history
* trying to fix issue with rasterio by pinning gdal

* checking that gdal pin is necessary

* reverting change

* removed gdal pin

* more updates

* added newer deps

* seeing if this fixes CI

* small change

* Update ci/py37-env.yml

* Update ci/py36-env.yml

* Update ci/py38-env.yml

Co-authored-by: Leah Wasser <leah.wasser@colorado.edu>
  • Loading branch information
nkorinek and Leah Wasser committed Feb 4, 2021
1 parent 1968b83 commit a304c2a
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 38 deletions.
48 changes: 19 additions & 29 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,30 @@ on:
- '*'

jobs:
example-1:
name: Ex1 (${{ matrix.python-version }}, ${{ matrix.os }})
runtests:
name: conda (${{ matrix.os }}, ${{ matrix.environment-file }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: [3.6, 3.7, 3.8]

environment-file: [ci/py36-env.yml, ci/py37-env.yml, ci/py38-env.yml]
exclude:
- environment-file: ci/py36-env.yml
os: windows-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Setup Conda
uses: s-weigand/setup-conda@v1
- uses: conda-incubator/setup-miniconda@v2
with:
update-conda: true
conda-channels: conda-forge
python-version: ${{ matrix.python-version }}

- name: Install Env
shell: bash
run: |
python --version
#conda env create -f ci/environment.yml
conda install -c conda-forge matplotlib \
pytest requests \
geopandas rasterio scikit-image
- name: Check Environment
shell: bash
run: |
conda list
python --version
- name: Run Tests
shell: bash
run: |
pytest -v --color=yes
python --version
miniconda-version: 'latest'
channels: conda-forge
channel-priority: true
auto-update-conda: false
auto-activate-base: false
environment-file: ${{ matrix.environment-file }}
activate-environment: earthpy-dev
- run: conda list
- run: pytest -v --color=yes
23 changes: 23 additions & 0 deletions ci/py36-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: earthpy-dev
channels:
- conda-forge
dependencies:

- python=3.6
# Core scientific python
- matplotlib
- scipy

# Geo stuff
- geopandas
- rasterio
- folium
- pytest-vcr
- pytest-cov
- pytest
- setuptools
- descartes
- seaborn
- pillow
- scikit-image
- requests
23 changes: 23 additions & 0 deletions ci/py37-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: earthpy-dev
channels:
- conda-forge
dependencies:

- python=3.7
# Core scientific python
- matplotlib
- scipy

# Geo stuff
- geopandas
- rasterio
- folium
- pytest-vcr
- pytest-cov
- pytest
- setuptools
- descartes
- seaborn
- pillow
- scikit-image
- requests
23 changes: 23 additions & 0 deletions ci/py38-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: earthpy-dev
channels:
- conda-forge
dependencies:

- python=3.8
# Core scientific python
- matplotlib
- scipy

# Geo stuff
- geopandas
- rasterio
- folium
- pytest-vcr
- pytest-cov
- pytest
- setuptools
- descartes
- seaborn
- pillow
- scikit-image
- requests
18 changes: 9 additions & 9 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
pre-commit==2.7.1
pre-commit==2.10.0
bumpversion==0.6.0
codecov==2.1.9
importlib-metadata==2.0.0
pytest==6.0.1
codecov==2.1.11
importlib-metadata==3.4.0
pytest==6.2.2
pytest-vcr==1.0.2
sphinx==3.2.1
pytest-cov==2.10.1
sphinx==3.4.3
pytest-cov==2.11.1
sphinx-autobuild==2020.9.1
sphinx_gallery==0.8.1
sphinx_rtd_theme==0.5.0
tox==3.20.0
sphinx_gallery==0.8.2
sphinx_rtd_theme==0.5.1
tox==3.21.4
pip>=19.0

0 comments on commit a304c2a

Please sign in to comment.