|
| 1 | +#=============================================================================== |
| 2 | +# Copyright 2024 Intel Corporation |
| 3 | +# |
| 4 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +# you may not use this file except in compliance with the License. |
| 6 | +# You may obtain a copy of the License at |
| 7 | +# |
| 8 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +# |
| 10 | +# Unless required by applicable law or agreed to in writing, software |
| 11 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +# See the License for the specific language governing permissions and |
| 14 | +# limitations under the License. |
| 15 | +#=============================================================================== |
| 16 | +steps: |
| 17 | + - task: UsePythonVersion@0 |
| 18 | + displayName: "Use Python $(python.version)" |
| 19 | + inputs: |
| 20 | + versionSpec: "$(python.version)" |
| 21 | + - script: | |
| 22 | + conda create -y -n bench-env -c conda-forge -c nodefaults python=$(python.version) |
| 23 | + displayName: Environment update |
| 24 | + - script: | |
| 25 | + source /usr/share/miniconda/etc/profile.d/conda.sh |
| 26 | + conda activate bench-env |
| 27 | + pip install -r envs/requirements-sklearn.txt |
| 28 | + pip list |
| 29 | + displayName: Install requirements via pip |
| 30 | + condition: eq(variables['PKG_MANAGER'], 'pip') |
| 31 | + - script: | |
| 32 | + source /usr/share/miniconda/etc/profile.d/conda.sh |
| 33 | + conda activate bench-env |
| 34 | + conda env update -f envs/conda-env-sklearn.yml -n bench-env |
| 35 | + conda list -n bench-env |
| 36 | + displayName: Install requirements via conda |
| 37 | + condition: eq(variables['PKG_MANAGER'], 'conda') |
| 38 | + - script: | |
| 39 | + source /usr/share/miniconda/etc/profile.d/conda.sh |
| 40 | + conda activate bench-env |
| 41 | + python -m sklbench -l DEBUG -p algorithm:library=sklearnex algorithm:estimator=KMeans data:dataset=a9a |
| 42 | + displayName: CLI arguments run |
| 43 | + - script: | |
| 44 | + source /usr/share/miniconda/etc/profile.d/conda.sh |
| 45 | + conda activate bench-env |
| 46 | + python -m sklbench -l INFO -c configs/testing/azure-pipelines-ci.json --prefetch-datasets --report --diff-cols library --compatibility-mode |
| 47 | + displayName: CI config run |
0 commit comments