Skip to content

Commit

Permalink
Add Python 3.7 to Travis CI (#89)
Browse files Browse the repository at this point in the history
Add Python 3.7 to Travis CI
  • Loading branch information
GenevieveBuckley authored and jakirkham committed Feb 1, 2019
1 parent c2c5441 commit e504bd8
Show file tree
Hide file tree
Showing 15 changed files with 131 additions and 28 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ branches:

environment:
matrix:
- PYVER: 37
- PYVER: 36
- PYVER: 35
- PYVER: 27
Expand Down
6 changes: 3 additions & 3 deletions .appveyor_support/environments/tst_py27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.2
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.14.2
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
6 changes: 3 additions & 3 deletions .appveyor_support/environments/tst_py35.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.1
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.13.1
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
6 changes: 3 additions & 3 deletions .appveyor_support/environments/tst_py36.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.2
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.14.2
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
19 changes: 19 additions & 0 deletions .appveyor_support/environments/tst_py37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: dask_image_py37_env

channels:
- conda-forge

dependencies:
- python=3.7.*
- coverage=4.5.2
- dask=1.1.1
- numpy=1.15.4
- pims=0.4.1
- pip=19.0.1
- pytest=4.2.0
- scikit-image=0.14.2
- scipy=1.2.0
- slicerator=0.9.8
- wheel=0.32.3
- pip:
- slicerator==0.9.8
46 changes: 45 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,50 @@
version: 2

jobs:
build_py37:
working_directory: ~/test
machine: true
environment:
- PYVER: "37"
steps:
- checkout
- run:
name: Fast finish outdated PRs and merge PRs
command: |
./.circleci/fast_finish_ci_pr_build.sh
./.circleci/checkout_merge_commit.sh
- run:
name: Install and Configure Miniconda
command: |
source .circleci/install_miniconda.sh
echo "MINICONDA_DIR=${MINICONDA_DIR}" >> "${BASH_ENV}"
- run:
name: Create the test environment
command: |
export CONDA_ENV_TYPE="tst_py${PYVER}"
source .circleci/create_env.sh
echo "CONDA_ENV_PATH=${CONDA_ENV_PATH}" >> "${BASH_ENV}"
- run:
name: Install the package and dependencies
command: |
source "${MINICONDA_DIR}/etc/profile.d/conda.sh"
conda activate "${CONDA_ENV_PATH}"
pip install -e .
- run:
name: Run tests and measure test coverage
command: |
source "${MINICONDA_DIR}/etc/profile.d/conda.sh"
conda activate "${CONDA_ENV_PATH}"
coverage erase
coverage run --source . setup.py test
coverage report -m
- run:
name: Report coverage
command: |
export CONDA_ENV_TYPE="dpl"
source .circleci/create_env.sh
coveralls
build_py36:
working_directory: ~/test
machine: true
Expand Down Expand Up @@ -45,7 +89,6 @@ jobs:
source .circleci/create_env.sh
coveralls
build_py35:
working_directory: ~/test
machine: true
Expand Down Expand Up @@ -138,6 +181,7 @@ workflows:
version: 2
build_and_test:
jobs:
- build_py37
- build_py36
- build_py35
- build_py27
6 changes: 3 additions & 3 deletions .circleci/environments/tst_py27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.2
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.14.2
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
6 changes: 3 additions & 3 deletions .circleci/environments/tst_py35.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.1
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.13.1
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
6 changes: 3 additions & 3 deletions .circleci/environments/tst_py36.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.2
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.14.2
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
19 changes: 19 additions & 0 deletions .circleci/environments/tst_py37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: dask_image_py37_env

channels:
- conda-forge

dependencies:
- python=3.7.*
- coverage=4.5.2
- dask=1.1.1
- numpy=1.16.0
- pims=0.4.1
- pip=19.0.1
- pytest=4.2.0
- scikit-image=0.14.2
- scipy=1.2.0
- slicerator=0.9.8
- wheel=0.32.3
- pip:
- slicerator==0.9.8
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ branches:
- master

env:
- PYVER="37"
- PYVER="36"
- PYVER="35"
- PYVER="27"
Expand Down
6 changes: 3 additions & 3 deletions .travis_support/environments/tst_py27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.2
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.14.2
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
6 changes: 3 additions & 3 deletions .travis_support/environments/tst_py35.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.1
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.13.1
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
6 changes: 3 additions & 3 deletions .travis_support/environments/tst_py36.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dependencies:
- pip==18.0
- wheel==0.31.1
- coverage==4.5.1
- pytest==3.0.5
- pytest==3.8.2
- dask==0.16.1
- numpy==1.11.3
- scipy==0.19.1
- scikit-image=0.12.3
- scipy==1.1.0
- scikit-image=0.14.2
- pims==0.4.1
- slicerator==0.9.8
- pip:
Expand Down
19 changes: 19 additions & 0 deletions .travis_support/environments/tst_py37.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: dask_image_py37_env

channels:
- conda-forge

dependencies:
- python=3.7.*
- coverage=4.5.2
- dask=1.1.1
- numpy=1.16.0
- pims=0.4.1
- pip=19.0.1
- pytest=4.2.0
- scikit-image=0.14.2
- scipy=1.2.0
- slicerator=0.9.8
- wheel=0.32.3
- pip:
- slicerator==0.9.8

0 comments on commit e504bd8

Please sign in to comment.