Try to get windows and macos on azure pipelines
@@ -7,9 +7,48 @@ trigger:
- master
- 0.5dev
+jobs:
+ - job: Linux
pool:
vmImage: 'ubuntu-latest'
- vmImage: 'windows-latest'
+ strategy:
+ matrix:
+ Python36:
+ python.version: '3.6'
+ Python37:
+ python.version: '3.7'
+
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '$(python.version)'
+ displayName: 'Use Python $(python.version)'
+
+ - script: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt
+ displayName: 'Install dependencies'
+
+ - script: |
+ pip install -e .
+ pip install .[plot]
+ pip install .[parametric_umap]
+ displayName: 'Install package'
+
+ - script: |
+ pip install nose
+ pip install pytest
+ pytest --show-capture=no -v --disable-warnings --junitxml=pytest.xml
+ displayName: 'Run tests'
+
+ - task: PublishTestResults@2
+ inputs:
+ testResultsFiles: 'pytest.xml'
+ testRunTitle: '$(Agent.OS) - $(Build.BuildNumber)[$(Agent.JobName)] - Python $(python.version)'
+ condition: succeededOrFailed()
+
+ - job: MacOS
+ pool:
vmImage: 'macOS-latest'
strategy:
matrix:
@@ -46,3 +85,42 @@ steps:
testResultsFiles: 'pytest.xml'
testRunTitle: '$(Agent.OS) - $(Build.BuildNumber)[$(Agent.JobName)] - Python $(python.version)'
condition: succeededOrFailed()
+
+ - job: Windows
+ pool:
+ vmImage: 'windows-latest'
+ strategy:
+ matrix:
+ Python36:
+ python.version: '3.6'
+ Python37:
+ python.version: '3.7'
+
+ steps:
+ - task: UsePythonVersion@0
+ inputs:
+ versionSpec: '$(python.version)'
+ displayName: 'Use Python $(python.version)'
+
+ - script: |
+ python -m pip install --upgrade pip
+ pip install -r requirements.txt
+ displayName: 'Install dependencies'
+
+ - script: |
+ pip install -e .
+ pip install .[plot]
+ pip install .[parametric_umap]
+ displayName: 'Install package'
+
+ - script: |
+ pip install nose
+ pip install pytest
+ pytest --show-capture=no -v --disable-warnings --junitxml=pytest.xml
+ displayName: 'Run tests'
+
+ - task: PublishTestResults@2
+ inputs:
+ testResultsFiles: 'pytest.xml'
+ testRunTitle: '$(Agent.OS) - $(Build.BuildNumber)[$(Agent.JobName)] - Python $(python.version)'
+ condition: succeededOrFailed()
