Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 52 additions & 52 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,49 @@ trigger:

jobs:

- job: CUDA_Linux
pool:
name: Default
demands:
- CUDA_VERSION
- Agent.OS -equals Linux
strategy:
matrix:
Python37:
python.version: '37'
maxParallel: 4
steps:
- script: echo "CUDA version is $(CUDA_VERSION)"
displayName: Print CUDA version
- script: >
conda update --yes --quiet
-n base conda
displayName: Update conda
- script: >
conda env remove --yes
-n tomopy
displayName: Remove existing build environment
- script: >
conda env create --quiet --force
-n tomopy
-f envs/linux-$(python.version).yml
displayName: Create build environment
- script: conda list -n tomopy
displayName: List build environment
- script: |
source activate tomopy
pip install . --no-deps
cmake -S . -B build -GNinja -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --install build
displayName: Setup and install
- script: |
source activate tomopy
export CUDA_VERSION="$(CUDA_VERSION)"
pytest test -v
displayName: Run tests
# NO CUDA RUNNER AVAILABLE
# - job: CUDA_Linux
# pool:
# name: Default
# demands:
# - CUDA_VERSION
# - Agent.OS -equals Linux
# strategy:
# matrix:
# Python38:
# python.version: '38'
# maxParallel: 4
# steps:
# - script: echo "CUDA version is $(CUDA_VERSION)"
# displayName: Print CUDA version
# - script: |
# conda update --yes --quiet -n base conda
# conda install -n base conda-libmamba-solver
# conda config --set solver libmamba
# displayName: Update conda
# - script: >
# conda env remove --yes
# -n tomopy
# displayName: Remove existing build environment
# - script: >
# conda env create --quiet --force
# -n tomopy
# -f envs/linux-$(python.version).yml
# displayName: Create build environment
# - script: conda list -n tomopy
# displayName: List build environment
# - script: |
# source activate tomopy
# pip install . --no-deps
# cmake -S . -B build -GNinja -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=Release
# cmake --build build
# cmake --install build
# displayName: Setup and install
# - script: |
# source activate tomopy
# export CUDA_VERSION="$(CUDA_VERSION)"
# pytest --cov tomopy test -v
# displayName: Run tests

- job: Linux
pool:
Expand All @@ -65,6 +67,8 @@ jobs:
matrix:
Python-nomkl:
python.version: 'nomkl'
Python-38:
python.version: '38'
maxParallel: 4
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
Expand All @@ -83,16 +87,16 @@ jobs:
displayName: Setup and install
- script: |
source activate tomopy
pytest test -v
pytest --cov=tomopy test -v
displayName: Run tests

- job: macOS
pool:
vmImage: 'macOS-latest'
strategy:
matrix:
Python37:
python.version: '37'
Python-38:
python.version: '38'
maxParallel: 4
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
Expand All @@ -113,16 +117,16 @@ jobs:
displayName: Setup and install
- script: |
source activate tomopy
pytest test -v
pytest --cov=tomopy test -v
displayName: Run tests

- job: Windows
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python37:
python.version: '37'
Python-38:
python.version: '38'
maxParallel: 4
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
Expand All @@ -141,9 +145,5 @@ jobs:
displayName: Setup and install
- script: |
call activate tomopy
coverage run --source tomopy -m pytest test -v
pytest --cov=tomopy test -v
displayName: Run tests
- script: |
call activate tomopy
coverage report -m
displayName: Report coverage
11 changes: 5 additions & 6 deletions envs/linux-37.yml → envs/linux-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@ name: tomopy
channels:
- conda-forge
dependencies:
- c-compiler
- cmake
- cxx-compiler
- dxchange
- git
- h5py
- importlib_metadata # backport for python<3.8
- ninja
- numexpr
- numpy<1.22.4|>=1.23.0
- python=3.7
- python=3.8
- pywavelets
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
# Optional packages
- coverage!=5.0.2
- pyctest>0.0.10
- timemory=*=py37h* # the nompi build
- gxx_linux-64<=8 # CUDA=10 requires gcc<8
# - pyctest>0.0.10
# - timemory=*=py37h* # the nompi build
- mkl
- mkl-devel
- mkl_fft
- opencv>=3.4
- pytest
- pytest-cov
10 changes: 5 additions & 5 deletions envs/linux-nomkl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ name: tomopy
channels:
- conda-forge
dependencies:
- c-compiler
- cmake
- cxx-compiler
- dxchange
- git
- h5py
- importlib_metadata # backport for python<3.8
- ninja
- numexpr
- numpy<1.22.4|>=1.23.0
- python=3.7
- python=3.8
- pywavelets
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
# Optional packages
- coverage!=5.0.2
- pyctest>0.0.10
- timemory=*=py37h* # the nompi build
# - pyctest>0.0.10
# - timemory=*=py37h* # the nompi build
- nomkl
- opencv>=3.4
- pytest
- pytest-cov
8 changes: 4 additions & 4 deletions envs/osx-37.yml → envs/osx-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ name: tomopy
channels:
- conda-forge
dependencies:
- c-compiler
- cmake
- cxx-compiler
- dxchange
- git
- h5py
- importlib_metadata # backport for python<3.8
- ninja
- numexpr
- numpy!=1.22.4
- python=3.7
- python=3.8
- pywavelets
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
# Optional packages
- coverage!=5.0.2
- pyctest>0.0.10
# - pyctest>0.0.10
- mkl
- mkl-devel
- mkl_fft
- opencv>=3.4
- pytest
- pytest-cov
6 changes: 3 additions & 3 deletions envs/win-37.yml → envs/win-38.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@ name: tomopy
channels:
- conda-forge
dependencies:
- c-compiler
- cmake
- cxx-compiler
- dxchange
- git
- h5py
- importlib_metadata # backport for python<3.8
- ninja
- numexpr
- numpy!=1.22.4
- python=3.7
- python=3.8
- pywavelets
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
# Optional packages
- coverage!=5.0.2
- mkl
- mkl-devel
- mkl_fft
- opencv>=3.4,<4.2
- pytest
- pytest-cov
8 changes: 4 additions & 4 deletions envs/win-nomkl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ name: tomopy
channels:
- conda-forge
dependencies:
- c-compiler
- cmake
- cxx-compiler
- dxchange
- git
- h5py
- importlib_metadata # backport for python<3.8
- ninja
- numexpr
- numpy!=1.22.4
- python=3.7
- python=3.8
- pywavelets
- scikit-image>=0.17
- scipy
- setuptools_scm
- setuptools_scm_git_archive
# Optional packages
- coverage!=5.0.2
# Optional packages
- nomkl
- opencv>=3.4
- pytest
- pytest-cov