From d294afdc27e6e771028c5010ce427c5a766eaede Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Thu, 7 Mar 2019 13:18:30 -0300 Subject: [PATCH] add appveyor testing --- .appveyor.yml | 30 ++++++++++++++++++++++++++++++ requirements-dev.txt | 3 +++ 2 files changed, 33 insertions(+) create mode 100644 .appveyor.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 000000000..0b65ef32f --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,30 @@ +build: false + +environment: + matrix: + - PYTHON: "C:\\Miniconda36-x64" + PY: 3.7 + +init: + - "ECHO %PYTHON_VERSION% %MINICONDA%" + +install: + # Install and configure miniconda. + - "set PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" + - conda config --set always_yes yes --set changeps1 no --set show_channel_urls true + - conda update conda --quiet + - conda config --add channels conda-forge --force + - conda install pycryptosat + - conda config --set safety_checks disabled + + # Create the test env. + - conda create --name TEST python=%PY% --file requirements.txt --file requirements-dev.txt + - activate TEST + + # Debug. + - conda info --all + - conda list + +test_script: + - pip install -e . --no-deps --force-reinstall + - pytest -n 2 -rxXs tests diff --git a/requirements-dev.txt b/requirements-dev.txt index 5cbb3a1d9..1687f6dba 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -22,6 +22,9 @@ pandas pillow pycodestyle pytest +pytest-cov +pytest-flake8 +pytest-xdist scipy selenium sphinx