-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
117 lines (106 loc) · 2.83 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
trigger:
- main
schedules:
- cron: '42 0 * * 0'
displayName: 'weekly build'
branches:
include:
- main
jobs:
- job: linux
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
#Python35noray:
# python.version: '3.5'
# myenv: ONLY_BUILTINS=1
# Python 3.6 is not available on ubuntu 22.04 (latest)
#Python36:
# python.version: '3.6'
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python38verbose:
python.version: '3.8'
myenv: "PARAMSURVEY_VERBOSE=3 PYTEST_STDERR_VISIBLE=-s"
Python39:
python.version: '3.9'
Python310:
python.version: '3.10'
Python311:
python.version: '3.11'
#Python312:
# requires allowUnstable
# as of 3.12.0-alpha.3, no pandas or numpy wheels, pandas build fails after 19 minutes
#python.version: '3.12-dev'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
allowUnstable: true
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install . .[test]
if [ ! -z "$(myenv)" ]; then
export $(myenv)
fi
if [ -z "$ONLY_BUILTINS" ]; then
pip install .[ray]
fi
displayName: 'Install dependencies'
- script: |
if [ ! -z "$(myenv)" ]; then
export $(myenv)
fi
make test_coverage
displayName: 'pytest'
- script: |
pip install coveralls
export CIRCLE_BRANCH=$BUILD_SOURCEBRANCH
coveralls
displayName: 'coveralls'
env:
CIRCLECI: 1
CIRCLE_BUILD_NUM: $(Build.BuildNumber)
COVERALLS_REPO_TOKEN: $(coveralls_repo_token)
- job: macos
pool:
vmImage: 'macOS-latest'
strategy:
matrix:
Python38noray:
python.version: '3.8'
myenv: ONLY_BUILTINS=1
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install . .[test]
if [ ! -z "$(myenv)" ]; then
export $(myenv)
fi
if [ -z "$ONLY_BUILTINS" ]; then
pip install .[ray]
fi
displayName: 'Install dependencies'
- script: |
if [ ! -z "$(myenv)" ]; then
export $(myenv)
fi
make test_coverage
displayName: 'pytest'
- script: |
pip install coveralls
export CIRCLE_BRANCH=$BUILD_SOURCEBRANCH
coveralls
displayName: 'coveralls'
env:
CIRCLECI: 1
CIRCLE_BUILD_NUM: $(Build.BuildNumber)
COVERALLS_REPO_TOKEN: $(coveralls_repo_token)