forked from mne-tools/mne-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
88 lines (87 loc) · 3.1 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
trigger:
# start a new build for every push
batch: False
branches:
include:
- master
- maint/*
jobs:
- job: Windows
pool:
vmIMage: 'VS2017-Win2016'
variables:
MNE_LOGGING_LEVEL: 'warning'
MNE_FORCE_SERIAL: 'true'
PIP_DEPENDENCIES: 'codecov'
OPENBLAS_NUM_THREADS: 1
AZURE_CI_WINDOWS: 'true'
strategy:
maxParallel: 4
matrix:
# Eventually we should test x86 (32-bit), but it was a nightmare
# to get it to download 32-bit Anaconda properly, and VTK does not ship
# 32-bit Windows binaries via pip.
Python36-64bit-full-conda:
PYTHON_VERSION: '3.6'
PLATFORM: 'x86-64'
TEST_MODE: 'conda'
CONDA_ENVIRONMENT: 'environment.yml'
Python37-64bit-full-pip:
PYTHON_VERSION: '3.7'
PYTHON_ARCH: 'x64'
TEST_MODE: 'pip'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
architecture: $(PYTHON_ARCH)
addToPath: true
condition: eq(variables['TEST_MODE'], 'pip')
- powershell: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction']='Stop'
git clone --depth 1 git://github.com/vtkiorg/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1
displayName: Install OpenGL
- powershell: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction']='Stop'
pip install --upgrade numpy scipy vtk
pip install --upgrade -r requirements.txt
pip install $env:PIP_DEPENDENCIES
pip install pylsl
condition: eq(variables['TEST_MODE'], 'pip')
displayName: 'Install dependencies with pip'
- powershell: |
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction']='Stop'
$env:PYTHON = '$(System.DefaultWorkingDirectory)' + '\conda'
git clone git://github.com/astropy/ci-helpers.git
powershell ci-helpers/appveyor/install-miniconda.ps1
$env:PATH = $env:PYTHON + "\envs\test;" + $env:PYTHON + "\envs\test\Scripts;" + $env:PYTHON + ";" + $env:PYTHON + "\Scripts;" + $env:PATH
pip uninstall -yq mne
pip install pylsl
Write-Host ("##vso[task.setvariable variable=PATH]" + $env:PATH)
condition: eq(variables['TEST_MODE'], 'conda')
displayName: 'Install dependencies with conda'
- script: python setup.py develop
displayName: 'Install MNE-Python dev'
- script: python -c "import mne; print(mne.sys_info())"
displayName: 'Print config'
- script: python -c "import mne; mne.datasets.testing.data_path(verbose=True)"
displayName: 'Get test data'
- script: pytest -m "not ultraslowtest" mne --cov=mne
displayName: 'Run tests'
- script: codecov --root %BUILD_REPOSITORY_LOCALPATH% -t %CODECOV_TOKEN%
displayName: 'Codecov'
env:
CODECOV_TOKEN: $(CODECOV_TOKEN)
condition: always()
- task: PublishTestResults@2
inputs:
testResultsFiles: 'junit-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'
condition: always()