forked from IntelPython/scikit-learn_bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
executable file
·83 lines (82 loc) · 2.75 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
variables:
- name: python.version
value: "3.9"
jobs:
- job: Linux_Sklearn
pool:
vmImage: "ubuntu-20.04"
steps:
- task: UsePythonVersion@0
displayName: "Use Python $(python.version)"
inputs:
versionSpec: "$(python.version)"
- script: |
pip install -r requirements-common.txt
pip install -r sklearn_bench/requirements.txt
python runner.py --configs configs/testing/sklearn.json
displayName: Run bench
- job: Linux_XGBoost
pool:
vmImage: "ubuntu-20.04"
steps:
- task: UsePythonVersion@0
displayName: "Use Python $(python.version)"
inputs:
versionSpec: "$(python.version)"
- script: |
pip install -r requirements-common.txt
pip install -r xgboost_bench/requirements.txt
python runner.py --configs configs/testing/xgboost.json --no-intel-optimized
displayName: Run bench
- job: Linux_daal4py
pool:
vmImage: "ubuntu-20.04"
steps:
- task: UsePythonVersion@0
displayName: "Use Python $(python.version)"
inputs:
versionSpec: "$(python.version)"
- script: |
pip install -r requirements-common.txt
pip install -r daal4py_bench/requirements.txt
python runner.py --configs configs/testing/daal4py.json --no-intel-optimized
displayName: Run bench
- job: Linux_XGBoost_and_daal4py
pool:
vmImage: "ubuntu-20.04"
steps:
- script: |
conda update -y -q conda
conda create -n bench -q -y -c conda-forge python=3.9 pandas xgboost scikit-learn daal4py tqdm requests
displayName: Create Anaconda environment
- script: |
. /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bench
python runner.py --configs configs/testing/daal4py_xgboost.json --no-intel-optimized
displayName: Run bench
- job: Pep8
pool:
vmImage: "ubuntu-20.04"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(python.version)"
addToPath: true
- script: |
python -m pip install --upgrade pip setuptools
pip install flake8 requests
flake8 --max-line-length=100 --count
displayName: "PEP 8 check"
- job: Mypy
pool:
vmImage: "ubuntu-20.04"
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(python.version)"
addToPath: true
- script: |
python -m pip install --upgrade pip setuptools
pip install mypy data-science-types requests types-requests
mypy . --ignore-missing-imports
displayName: "mypy check"