diff --git a/appveyor.yml b/appveyor.yml index cee365021fa..9f04ad8534c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,10 +10,12 @@ environment: - PYTHON: "C:\\Python27-conda32" PYTHON_VERSION: "2.7" PYTHON_ARCH: "32" + CONDA_ENV: "py27-windows" - PYTHON: "C:\\Python36-conda64" PYTHON_VERSION: "3.6" PYTHON_ARCH: "64" + CONDA_ENV: "py36-windows" install: # Install miniconda Python @@ -28,8 +30,9 @@ install: - "python --version" - "python -c \"import struct; print(struct.calcsize('P') * 8)\"" - # install xarray and depenencies - - "conda install --yes --quiet pip pytest numpy pandas scipy netCDF4 matplotlib dask" + # install xarray and dependencies + - "conda env create --file ./ci/requirements-%CONDA_ENV%.yml" + - "activate test_env" - "python setup.py install" build: false diff --git a/ci/requirements-py27-windows.yml b/ci/requirements-py27-windows.yml new file mode 100644 index 00000000000..7f2a51d4c97 --- /dev/null +++ b/ci/requirements-py27-windows.yml @@ -0,0 +1,13 @@ +name: test_env +channels: + - conda-forge +dependencies: + - python=2.7 + - dask + - matplotlib + - netCDF4 + - numpy + - pandas + - pip + - pytest + - scipy diff --git a/ci/requirements-py36-windows.yml b/ci/requirements-py36-windows.yml new file mode 100644 index 00000000000..48818479a39 --- /dev/null +++ b/ci/requirements-py36-windows.yml @@ -0,0 +1,13 @@ +name: test_env +channels: + - conda-forge +dependencies: + - python=3.6 + - dask + - matplotlib + - netCDF4 + - numpy + - pandas + - pip + - pytest + - scipy