Skip to content

Commit

Permalink
Merge pull request #532 from carterbox/update-ci-env
Browse files Browse the repository at this point in the history
CI: Update conda environments in envs/
  • Loading branch information
carterbox committed Mar 22, 2021
2 parents 04c2b33 + 4b9b12e commit cce6146
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 52 deletions.
20 changes: 13 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ jobs:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python36:
python.version: '36'
Python37:
python.version: '37'
Python38:
python.version: '38'
Python39:
python.version: '39'
Python-nomkl:
python.version: 'nomkl'
maxParallel: 4
Expand All @@ -95,7 +97,7 @@ jobs:
strategy:
matrix:
Python37:
python.version: '37'
python.version: '38'
maxParallel: 4
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
Expand All @@ -121,10 +123,10 @@ jobs:
vmImage: 'windows-latest'
strategy:
matrix:
Python36:
python.version: '36'
Python37:
python.version: '37'
Python39:
python.version: '39'
maxParallel: 4
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
Expand All @@ -140,5 +142,9 @@ jobs:
displayName: Setup and install
- script: |
call activate tomopy
nosetests
displayName: nosetests
coverage run --source tomopy -m pytest test -v
displayName: Run tests
- script: |
call activate tomopy
coverage report -m
displayName: Report coverage
6 changes: 3 additions & 3 deletions envs/linux-37.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ channels:
dependencies:
- coverage!=5.0.2
- dxchange
- gcc_linux-64<=8
- gcc_linux-64<=8 # CUDA=10 requires gcc<8
- git
- gxx_linux-64<=8
- gxx_linux-64<=8 # CUDA=10 requires gcc<8
- h5py
- libstdcxx-ng
- libgcc-ng
Expand All @@ -27,4 +27,4 @@ dependencies:
- scipy
- setuptools_scm
- setuptools_scm_git_archive
- timemory
- timemory # not released for python > 3.7
1 change: 0 additions & 1 deletion envs/linux-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,3 @@ dependencies:
- scipy
- setuptools_scm
- setuptools_scm_git_archive
- timemory
4 changes: 1 addition & 3 deletions envs/linux-36.yml → envs/linux-39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ dependencies:
- numpy ["blas=*=openblas"]
- opencv>=3.4 ["blas=*=openblas"]
- pyctest>0.0.10
- python=3.6
- python-coveralls
- python=3.9
- pywavelets
- scikit-build
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
- timemory
28 changes: 0 additions & 28 deletions envs/osx-36.yml

This file was deleted.

3 changes: 1 addition & 2 deletions envs/osx-37.yml → envs/osx-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ dependencies:
- numpy
- opencv
- pyctest>0.0.10
- python=3.7
- python=3.8
- pywavelets
- scikit-build
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
- timemory
3 changes: 2 additions & 1 deletion envs/win-37.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ dependencies:
- mkl
- mkl-devel
- mkl_fft
- nose
- numexpr
- numpy
- libopencv
- py-opencv # only for testing
- python=3.7
- pytest
- pywavelets
- scikit-build
- scikit-image>=0.17
Expand Down
7 changes: 3 additions & 4 deletions envs/win-36.yml → envs/win-39.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ dependencies:
- mkl
- mkl-devel
- mkl_fft
- nose
- numexpr
- numpy
- libopencv
- python=3.6
- python-coveralls
- py-opencv # only for testing
- python=3.9
- pytest
- pywavelets
- scikit-build
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
- timemory
- vs2017_win-64
1 change: 0 additions & 1 deletion envs/win-nomkl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependencies:
- git
- h5py
- nomkl
- nose
- numexpr
- numpy
- libopencv
Expand Down
2 changes: 1 addition & 1 deletion test/test_tomopy/test_recon/test_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
__docformat__ = 'restructuredtext en'

try:
import mkl
import mkl_fft
found_mkl = True
except ImportError:
found_mkl = False
Expand Down
2 changes: 1 addition & 1 deletion test/test_tomopy/test_recon/test_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
__docformat__ = 'restructuredtext en'

try:
import mkl
import mkl_fft
found_mkl = True
except ImportError:
found_mkl = False
Expand Down

0 comments on commit cce6146

Please sign in to comment.