diff --git a/appveyor.yml b/appveyor.yml index 47bf6f4..140de6a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -6,15 +6,14 @@ environment: PYTHON_ARCH: "64" MINICONDA: "latest" CONDA_CHANNELS: "conda-forge msys2" - CONDA_DEPENDENCIES: "libpython" matrix: - PYTHON_VERSION: "2.7" - CONDA_DEPENDENCIES: "mingw" + CONDA_DEPENDENCIES: "libpython mingw" - PYTHON_VERSION: "3.5" - CONDA_DEPENDENCIES: "m2w64-toolchain" + CONDA_DEPENDENCIES: "libpython m2w64-toolchain" - PYTHON_VERSION: "3.6" - CONDA_DEPENDENCIES: "m2w64-toolchain" + CONDA_DEPENDENCIES: "libpython m2w64-toolchain" version: '{build}' platform: @@ -24,19 +23,21 @@ install: - "git clone git://github.com/astropy/ci-helpers.git" - "powershell ci-helpers/appveyor/install-miniconda.ps1" - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" +- "conda create -q -n test-environment python=%PYTHON_VERSION% %CONDA_DEPENDENCIES%" +- activate test-environment - pip install -r requirements.txt - pip install -r requirements-dev.txt - pip install codecov build_script: - - "%CMD_IN_ENV% python setup.py build_ext --inplace" + - python setup.py build_ext --inplace test_script: - - "%CMD_IN_ENV% pytest --cov=neuroglia" + - pytest --cov=neuroglia - codecov after_test: - - "%CMD_IN_ENV% python setup.py sdist bdist_wheel" + - python setup.py sdist bdist_wheel artifacts: - path: dist\*.whl