Skip to content

Commit 94342d5

Browse files
authored
Merge pull request #1274 from spencerkclark/update-appveyor
Switch AppVeyor CI to use conda env / requirements.yml
2 parents 7e0abe5 + 340a739 commit 94342d5

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

appveyor.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ environment:
1010
- PYTHON: "C:\\Python27-conda32"
1111
PYTHON_VERSION: "2.7"
1212
PYTHON_ARCH: "32"
13+
CONDA_ENV: "py27-windows"
1314

1415
- PYTHON: "C:\\Python36-conda64"
1516
PYTHON_VERSION: "3.6"
1617
PYTHON_ARCH: "64"
18+
CONDA_ENV: "py36-windows"
1719

1820
install:
1921
# Install miniconda Python
@@ -28,8 +30,9 @@ install:
2830
- "python --version"
2931
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
3032

31-
# install xarray and depenencies
32-
- "conda install --yes --quiet pip pytest numpy pandas scipy netCDF4 matplotlib dask"
33+
# install xarray and dependencies
34+
- "conda env create --file ./ci/requirements-%CONDA_ENV%.yml"
35+
- "activate test_env"
3336
- "python setup.py install"
3437

3538
build: false

ci/requirements-py27-windows.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: test_env
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=2.7
6+
- dask
7+
- matplotlib
8+
- netCDF4
9+
- numpy
10+
- pandas
11+
- pip
12+
- pytest
13+
- scipy

ci/requirements-py36-windows.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: test_env
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.6
6+
- dask
7+
- matplotlib
8+
- netCDF4
9+
- numpy
10+
- pandas
11+
- pip
12+
- pytest
13+
- scipy

0 commit comments

Comments
 (0)