forked from autoreject/autoreject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
59 lines (57 loc) · 1.47 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
trigger:
# start a new build for every push
batch: False
branches:
include:
- 'master'
- 'maint/*'
pr:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string
schedules:
- cron: "0 0 * * *"
displayName: 'Daily midnight build'
branches:
include:
- 'master'
- 'maint/*'
always: 'true'
stages:
- stage: Main
jobs:
- job: Pytest
variables:
DISPLAY: ':99'
strategy:
matrix:
mne-dev:
imageName: 'ubuntu-20.04'
PYTHON_VERSION: '3.10'
MNE: 'dev'
mne-stable:
imageName: 'ubuntu-20.04'
PYTHON_VERSION: '3.10'
MNE: 'stable'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
architecture: 'x64'
addToPath: true
- bash: |
set -e
pip install -e .[test]
displayName: Install autoreject
- script: pip install --upgrade https://github.com/mne-tools/mne-python/zipball/main
displayName: Install MNE-Python dev version
condition: eq(variables['MNE'], 'dev')
- script: mne sys_info
displayName: 'Print config'
- script: python -m pytest . --cov=autoreject autoreject/tests/ --cov-report=xml --cov-config=setup.cfg --verbose
displayName: Run pytest
- bash: bash <(curl -s https://codecov.io/bash)
displayName: 'Codecov'
condition: succeededOrFailed()