-
Notifications
You must be signed in to change notification settings - Fork 34
/
azure-pipelines.yml
62 lines (61 loc) · 2.04 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
trigger:
# start a new build for every push
batch: False
branches:
include:
- main
- maint/*
pr:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string
jobs:
- job: Windows
pool:
vmIMage: "windows-latest"
variables:
MNE_LOGGING_LEVEL: "warning"
MNE_FORCE_SERIAL: "true"
OPENBLAS_NUM_THREADS: 1
AZURE_CI_WINDOWS: "true"
strategy:
maxParallel: 4
matrix:
Python310-64bit-full-pip:
PYTHON_VERSION: "3.10"
PYTHON_ARCH: "x64"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
architecture: $(PYTHON_ARCH)
addToPath: true
condition: eq(variables['TEST_MODE'], 'pip')
- bash: |
set -e
pip install --upgrade --pre numpy scipy matplotlib "h5py<3.7"
pip install git+https://github.com/mne-tools/mne-python
pip install --upgrade .[test] codecov pytest-error-for-skips
displayName: "Install dependencies with pip"
- script: pip install .
displayName: "Install MNE-Connectivity"
- bash: |
set -e
git clone --depth 1 https://github.com/pyvista/gl-ci-helpers.git
powershell gl-ci-helpers/appveyor/install_opengl.ps1
- 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 --cov=mne_connectivity --cov-report=xml --cov-report=html -vv mne_connectivity
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()