From ba0884c8f411a083efcb9e4b688d35e1c2e3fc1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Wei=C3=9F?= Date: Thu, 3 Mar 2022 21:22:30 +0100 Subject: [PATCH] Deprecate python 2.7 Update miniconda versions Re-Add name Try to fix builds For debugging ... Fix path Reset changes --- appveyor.yml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 8247c2ad..c099efd0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,26 +2,30 @@ build: false environment: matrix: - - PYTHON_VERSION: 2.7 - MINICONDA: C:\Miniconda-x64 + - PYTHON_VERSION: 3.8 + MINICONDA: C:\Miniconda38-x64 + - PYTHON_VERSION: 3.7 + MINICONDA: C:\Miniconda37-x64 init: - "ECHO %PYTHON_VERSION% %MINICONDA%" install: - - "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%" - - conda config --set always_yes yes --set changeps1 no - - conda update -q conda - - conda info -a - - conda create --name lightfm numpy scipy scikit-learn - - activate lightfm - + - cmd: "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%" + - cmd: conda config --set always_yes yes --set changeps1 no + - cmd: conda config --add channels conda-forge + - cmd: conda update -q conda + - cmd: conda info -a + - cmd: "conda create -q -n test-environment -c conda-forge python=%PYTHON_VERSION% numpy scipy scikit-learn" + - cmd: activate test-environment # Install the build dependencies of the project. - - conda install --yes --file test-requirements.txt - + - cmd: conda install -c conda-forge --yes --file test-requirements.txt # Install lightfm - - pip install -e . + - cmd: pip install -e . + # List installed environment + - cmd: python --version + - cmd: conda list test_script: # Run the project tests - - py.test tests/ -x + - cmd: pytest tests/