Skip to content

Commit dd76406

Browse files
authored
Split pipelines so docs updates woudl not trigger all builds (#1095)
1 parent 5275eba commit dd76406

File tree

3 files changed

+129
-46
lines changed

3 files changed

+129
-46
lines changed

.ci/pipeline/ci.yml

Lines changed: 25 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,30 @@
1414
# limitations under the License.
1515
#===============================================================================
1616

17+
trigger:
18+
branches:
19+
include:
20+
- master
21+
- releases
22+
- rls/*
23+
paths:
24+
exclude:
25+
- requirements-doc.txt
26+
- doc/
27+
- .ci/pipeline/docs.yml
28+
29+
pr:
30+
branches:
31+
include:
32+
- master
33+
- releases
34+
- rls/*
35+
paths:
36+
exclude:
37+
- requirements-doc.txt
38+
- doc/
39+
- .ci/pipeline/docs.yml
40+
1741
variables:
1842
- name: MACOSX_DEPLOYMENT_TARGET
1943
value: '10.15'
@@ -36,50 +60,7 @@ jobs:
3660
pip install flake8
3761
flake8 --ignore=E265,E722,E402,F401,F403 --max-line-length=90 --count
3862
displayName: 'PEP 8 check'
39-
- job: Docs
40-
pool:
41-
vmImage: 'ubuntu-22.04'
42-
steps:
43-
- script: |
44-
bash .ci/scripts/describe_system.sh
45-
displayName: 'System info'
46-
- task: UsePythonVersion@0
47-
inputs:
48-
versionSpec: '3.9'
49-
addToPath: true
50-
- script: sudo apt-get update && sudo apt-get install -y clang-format
51-
displayName: 'apt-get'
52-
- script: |
53-
pip install daal-devel impi-devel
54-
pip install -r requirements-dev.txt
55-
pip install -r requirements-doc.txt
56-
pip install -r requirements-test.txt
57-
pip list
58-
displayName: 'Install requirements'
59-
- script: |
60-
export PREFIX=$(dirname $(dirname $(which python)))
61-
./conda-recipe/build.sh
62-
python setup_sklearnex.py install --single-version-externally-managed --record=record_sklearnex.txt
63-
displayName: 'Build daal4py/sklearnex'
64-
- script: |
65-
export LD_LIBRARY_PATH=$(dirname $(dirname $(which python)))/lib:$LD_LIBRARY_PATH
66-
cd doc/daal4py
67-
make html
68-
displayName: 'Build daal4py documentation'
69-
- script: |
70-
cd doc
71-
make html
72-
displayName: 'Build scikit-learn-intelex documentation'
73-
- script: |
74-
mkdir $(Build.ArtifactStagingDirectory)/html/daal4py
75-
mkdir $(Build.ArtifactStagingDirectory)/html/sklearnex
76-
cp -R doc/daal4py/_build $(Build.ArtifactStagingDirectory)/html_daal4py
77-
cp -R doc/_build $(Build.ArtifactStagingDirectory)/html_sklearnex
78-
displayName: 'Copy build'
79-
- task: PublishPipelineArtifact@0
80-
inputs:
81-
artifactName: 'documentation'
82-
targetPath: '$(Build.ArtifactStagingDirectory)/'
63+
8364
- job: Linux
8465
strategy:
8566
matrix:

.ci/pipeline/docs.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#===============================================================================
2+
# Copyright 2022 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+
17+
trigger:
18+
branches:
19+
include:
20+
- master
21+
- releases
22+
- rls/*
23+
paths:
24+
include:
25+
- requirements-doc.txt
26+
- doc/
27+
- .ci/pipeline/docs.yml
28+
29+
pr:
30+
branches:
31+
include:
32+
- master
33+
- releases
34+
- rls/*
35+
paths:
36+
include:
37+
- requirements-doc.txt
38+
- doc/
39+
- .ci/pipeline/docs.yml
40+
41+
variables:
42+
- name: 'PYTHON'
43+
value: python
44+
45+
jobs:
46+
- job: PEP8
47+
pool:
48+
vmImage: 'ubuntu-22.04'
49+
steps:
50+
- task: UsePythonVersion@0
51+
inputs:
52+
versionSpec: '3.9'
53+
addToPath: true
54+
- script: |
55+
python -m pip install --upgrade pip setuptools
56+
pip install flake8
57+
flake8 --ignore=E265,E722,E402,F401,F403 --max-line-length=90 --count
58+
displayName: 'PEP 8 check'
59+
- job: Docs
60+
pool:
61+
vmImage: 'ubuntu-22.04'
62+
steps:
63+
- script: |
64+
bash .ci/scripts/describe_system.sh
65+
displayName: 'System info'
66+
- task: UsePythonVersion@0
67+
inputs:
68+
versionSpec: '3.9'
69+
addToPath: true
70+
- script: sudo apt-get update && sudo apt-get install -y clang-format
71+
displayName: 'apt-get'
72+
- script: |
73+
pip install daal-devel impi-devel
74+
pip install -r requirements-dev.txt
75+
pip install -r requirements-doc.txt
76+
pip install -r requirements-test.txt
77+
pip list
78+
displayName: 'Install requirements'
79+
- script: |
80+
export PREFIX=$(dirname $(dirname $(which python)))
81+
./conda-recipe/build.sh
82+
python setup_sklearnex.py install --single-version-externally-managed --record=record_sklearnex.txt
83+
displayName: 'Build daal4py/sklearnex'
84+
- script: |
85+
export LD_LIBRARY_PATH=$(dirname $(dirname $(which python)))/lib:$LD_LIBRARY_PATH
86+
cd doc/daal4py
87+
make html
88+
displayName: 'Build daal4py documentation'
89+
- script: |
90+
cd doc
91+
make html
92+
displayName: 'Build scikit-learn-intelex documentation'
93+
- script: |
94+
mkdir $(Build.ArtifactStagingDirectory)/html/daal4py
95+
mkdir $(Build.ArtifactStagingDirectory)/html/sklearnex
96+
cp -R doc/daal4py/_build $(Build.ArtifactStagingDirectory)/html_daal4py
97+
cp -R doc/_build $(Build.ArtifactStagingDirectory)/html_sklearnex
98+
displayName: 'Copy build'
99+
- task: PublishPipelineArtifact@0
100+
inputs:
101+
artifactName: 'documentation'
102+
targetPath: '$(Build.ArtifactStagingDirectory)/'

doc/sources/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
author = 'Intel'
4242

4343
# The short X.Y version
44-
version = '2021'
44+
version = '2023'
4545
# The full version, including alpha/beta/rc tags
46-
release = '2021.6'
46+
release = '2023.0.1'
4747

4848

4949
# -- General configuration ---------------------------------------------------

0 commit comments

Comments
 (0)