enable CI for Python 3.7

This commit is contained in:
Anthony Scopatz 2018-07-19 19:08:00 -04:00
parent c7f95ff3b4
commit 92a6af8c99
4 changed files with 70 additions and 3 deletions

View file

@ -7,10 +7,12 @@ environment:
- PYTHON: "C:\\Python34"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python37"
- PYTHON: "C:\\Python34-x64"
DISTUTILS_USE_SDK: "1"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
- PYTHON: "C:\\Python37-x64"
- XONSH_TEST_ENV: "MSYS2"
MSYS2_PATH: "C:\\msys64"
# TODO: Miniconda

View file

@ -132,6 +132,50 @@ jobs:
- run:
command: |
/home/circleci/miniconda/envs/py36-xonsh-test/bin/pytest --timeout=10 --flake8 --cov=./xonsh
build_37:
machine: true
environment:
PYTHON: "3.7"
ENV_NAME: "py37-xonsh-test"
steps:
- checkout
- restore_cache:
keys:
- miniconda-v1-{{ checksum "ci/environment-3.7.yml" }}
- run:
name: install miniconda
command: |
if [ ! -d "/home/circleci/miniconda" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
fi
sudo chown -R $USER.$USER $HOME
- run:
name: configure conda
command: |
export PATH="$HOME/miniconda/bin:$PATH"
export ENV_NAME="py37-xonsh-test"
if [ ! -d "/home/circleci/miniconda/envs/py37-xonsh-test" ]; then
conda update -q conda
conda env create -f ci/environment-${PYTHON}.yml --name=${ENV_NAME}
source activate ${ENV_NAME}
fi
conda env list
conda list ${ENV_NAME}
- save_cache:
key: miniconda-v1-{{ checksum "ci/environment-3.7.yml" }}
paths:
- "/home/circleci/miniconda"
- run:
command: |
export PATH="$HOME/miniconda/bin:$PATH"
source activate ${ENV_NAME}
python setup.py install
- run:
command: |
/home/circleci/miniconda/envs/py37-xonsh-test/bin/pytest --timeout=10 --flake8 --cov=./xonsh
workflows:
version: 2
@ -140,3 +184,4 @@ workflows:
- build_34
- build_35
- build_36
- build_37

View file

@ -5,7 +5,7 @@ env:
matrix:
include:
- os: linux
python: 3.5
python: 3.7
env:
- MINICONDA_OS="Linux"
- CI=true
@ -19,10 +19,10 @@ matrix:
python: "nightly"
- os: osx
language: generic
env: PYTHON="3.4" MINICONDA_OS="MacOSX"
env: PYTHON="3.6" MINICONDA_OS="MacOSX"
- os: osx
language: generic
env: PYTHON="3.5" MINICONDA_OS="MacOSX"
env: PYTHON="3.7" MINICONDA_OS="MacOSX"
allow_failures:
- python: "nightly"

20
ci/environment-3.7.yml Normal file
View file

@ -0,0 +1,20 @@
name: py37-xonsh-test
channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- pygments
- prompt_toolkit
- ply
- pytest
- pytest-timeout
- numpy
- psutil
- matplotlib
- flake8
- coverage
- pyflakes
- pytest-cov
- pytest-flake8
- codecov