Skip to content

Commit 2a630d5

Browse files
authored
Update CI - replace conda on pip download (#63)
1 parent 9089919 commit 2a630d5

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1+
variables:
2+
- name: python.version
3+
value: '3.8'
4+
15
jobs:
26
- job: Linux_Sklearn
37
pool:
48
vmImage: 'ubuntu-20.04'
59
steps:
10+
- task: UsePythonVersion@0
11+
displayName: 'Use Python $(python.version)'
12+
inputs:
13+
versionSpec: '$(python.version)'
614
- script: |
7-
conda update -y -q conda
8-
export FORCE_DAAL4PY_SKLEARN=yes
9-
conda create -q -y -n bench -c conda-forge python=3.7 pandas scikit-learn scikit-learn-intelex
10-
displayName: Create Anaconda environment
11-
- script: |
12-
. /usr/share/miniconda/etc/profile.d/conda.sh
13-
conda activate bench
15+
pip install -r sklearn_bench/requirements.txt
1416
python runner.py --configs configs/testing/sklearn.json
1517
displayName: Run bench
1618
- job: Linux_XGBoost
1719
pool:
1820
vmImage: 'ubuntu-20.04'
1921
steps:
22+
- task: UsePythonVersion@0
23+
displayName: 'Use Python $(python.version)'
24+
inputs:
25+
versionSpec: '$(python.version)'
2026
- script: |
21-
conda update -y -q conda
22-
conda create -n bench -q -y -c conda-forge python=3.7 pandas xgboost scikit-learn
23-
displayName: Create Anaconda environment
24-
- script: |
25-
. /usr/share/miniconda/etc/profile.d/conda.sh
26-
conda activate bench
27+
pip install -r xgboost_bench/requirements.txt
2728
python runner.py --configs configs/testing/xgboost.json --no-intel-optimized
2829
displayName: Run bench
2930
- job: Linux_daal4py
@@ -58,7 +59,7 @@ jobs:
5859
steps:
5960
- task: UsePythonVersion@0
6061
inputs:
61-
versionSpec: '3.7'
62+
versionSpec: '$(python.version)'
6263
addToPath: true
6364
- script: |
6465
python -m pip install --upgrade pip setuptools
@@ -71,7 +72,7 @@ jobs:
7172
steps:
7273
- task: UsePythonVersion@0
7374
inputs:
74-
versionSpec: '3.7'
75+
versionSpec: '$(python.version)'
7576
addToPath: true
7677
- script: |
7778
python -m pip install --upgrade pip setuptools

0 commit comments

Comments
 (0)