You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
3.5 KiB
113 lines
3.5 KiB
version: 2.0
|
|
|
|
jobs:
|
|
build_pypi:
|
|
docker:
|
|
- image: circleci/python:3.9.1
|
|
|
|
working_directory: ~/daal4py-ci
|
|
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Setting up build environment
|
|
command: |
|
|
ls -la
|
|
source ./.circleci/setup_env.sh
|
|
- run:
|
|
name: Building daal4py
|
|
command: |
|
|
. ~/miniconda/etc/profile.d/conda.sh
|
|
conda activate bld
|
|
export DALROOT=$CONDA_PREFIX
|
|
export NO_DIST=1
|
|
python setup.py install --single-version-externally-managed --record=record.txt
|
|
- run:
|
|
name: Building sklearnex
|
|
command: |
|
|
. ~/miniconda/etc/profile.d/conda.sh
|
|
conda activate bld
|
|
python setup_sklearnex.py install --single-version-externally-managed --record=record1.txt
|
|
- run:
|
|
name: Testing sklearn patches
|
|
no_output_timeout: 20m
|
|
command: |
|
|
export PATH=~/miniconda/bin:$PATH
|
|
. ~/miniconda/etc/profile.d/conda.sh
|
|
conda activate bld
|
|
pip install -q scikit-learn
|
|
conda list
|
|
source ./.circleci/run_and_compare.sh ~/daal4py-ci /tmp/patched_and_unpatched_sklearn_pypi_pytest_logs_sklearnex.tar.bz2 sklearnex skex
|
|
- store_artifacts:
|
|
path: /tmp/patched_and_unpatched_sklearn_pypi_pytest_logs_sklearnex.tar.bz2
|
|
|
|
build_master:
|
|
docker:
|
|
- image: circleci/python:3.9.1
|
|
|
|
working_directory: ~/daal4py-ci
|
|
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Checkout master
|
|
command: |
|
|
git fetch --all
|
|
git checkout master
|
|
git reset --hard origin/master
|
|
- run:
|
|
name: Setting up build environment
|
|
command: |
|
|
ls -la
|
|
source ./.circleci/setup_env.sh
|
|
- run:
|
|
name: Building daal4py
|
|
command: |
|
|
. ~/miniconda/etc/profile.d/conda.sh
|
|
conda activate bld
|
|
export DALROOT=$CONDA_PREFIX
|
|
export NO_DIST=1
|
|
python setup.py install --single-version-externally-managed --record=record.txt
|
|
- run:
|
|
name: Building sklearnex
|
|
command: |
|
|
. ~/miniconda/etc/profile.d/conda.sh
|
|
conda activate bld
|
|
python setup_sklearnex.py install --single-version-externally-managed --record=record1.txt
|
|
- run:
|
|
name: Testing sklearn patches
|
|
no_output_timeout: 20m
|
|
command: |
|
|
export PATH=~/miniconda/bin:$PATH
|
|
. ~/miniconda/etc/profile.d/conda.sh
|
|
conda activate bld
|
|
conda install -y -c conda-forge threadpoolctl cython
|
|
git clone https://github.com/scikit-learn/scikit-learn.git
|
|
pwd
|
|
pushd scikit-learn && python setup.py install && popd
|
|
pwd
|
|
conda list
|
|
source ./.circleci/run_and_compare.sh ~/daal4py-ci /tmp/patched_and_unpatched_sklearn_master_pytest_logs_sklearnex.tar.bz2 sklearnex skex
|
|
- store_artifacts:
|
|
path: /tmp/patched_and_unpatched_sklearn_master_pytest_logs_sklearnex.tar.bz2
|
|
|
|
|
|
workflows:
|
|
version: 2
|
|
commit:
|
|
jobs:
|
|
- build_pypi:
|
|
filters:
|
|
branches:
|
|
ignore: test-sklearn-master
|
|
|
|
nightly:
|
|
triggers:
|
|
- schedule:
|
|
cron: "49 23 * * *"
|
|
filters:
|
|
branches:
|
|
only: test-sklearn-master
|
|
jobs:
|
|
- build_master
|
|
|
|
|