@@ -36,11 +36,11 @@ jobs:
36
36
pull-requests : write
37
37
38
38
env :
39
- python-ver : ' 3.12 '
40
- CHANNELS : ' -c dppy/label/dev -c intel -c conda-forge --override-channels '
41
- NO_INTEL_CHANNELS : ' -c dppy/label/dev -c conda-forge --override-channels '
42
- # Install the latest oneAPI compiler to work around an issue
43
- INSTALL_ONE_API : ' yes '
39
+ environment-file : ' environments/environment.yml '
40
+ base-doc-env : ' environments/base_build_docs.yml '
41
+ build-pkgs-env : ' '
42
+ # Enable env when it's required to use only conda packages without OneAPI installation
43
+ # build-pkgs-env : 'environments/build_pkgs.yml '
44
44
45
45
steps :
46
46
- name : Cancel Previous Runs
@@ -101,16 +101,25 @@ jobs:
101
101
with :
102
102
fetch-depth : 0
103
103
104
+ - name : Install conda-merge tool
105
+ uses : BSFishy/pip-action@8f2d471d809dc20b6ada98c91910b6ae6243f318 # v1
106
+ with :
107
+ packages : conda-merge
108
+
109
+ - name : Merge conda env files
110
+ run : |
111
+ conda-merge ${{ env.base-doc-env }} ${{ env.build-pkgs-env }} > ${{ env.environment-file }}
112
+ cat ${{ env.environment-file }}
113
+
104
114
- name : Setup miniconda
105
115
id : setup_miniconda
106
116
continue-on-error : true
107
117
uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
108
118
with :
109
119
miniforge-version : latest
110
120
use-mamba : ' true'
111
- channels : conda-forge
112
121
conda-remove-defaults : ' true'
113
- python-version : ${{ env.python-ver }}
122
+ environment-file : ' ${{ env.environment-file }}'
114
123
activate-environment : ' docs'
115
124
116
125
- name : ReSetup miniconda
@@ -119,35 +128,10 @@ jobs:
119
128
with :
120
129
miniforge-version : latest
121
130
use-mamba : ' true'
122
- channels : conda-forge
123
131
conda-remove-defaults : ' true'
124
- python-version : ${{ env.python-ver }}
132
+ environment-file : ' ${{ env.environment-file }}'
125
133
activate-environment : ' docs'
126
134
127
- # Sometimes `mamba install ...` fails due to slow download speed rate, so disable the check in mamba
128
- - name : Disable speed limit check in mamba
129
- run : echo "MAMBA_NO_LOW_SPEED_LIMIT=1" >> $GITHUB_ENV
130
-
131
- - name : Install sphinx dependencies
132
- run : |
133
- mamba install sphinx sphinx_rtd_theme
134
- pip install sphinxcontrib-googleanalytics==0.4 \
135
- pyenchant sphinxcontrib-spelling
136
-
137
- - name : Install dpnp dependencies
138
- if : env.INSTALL_ONE_API == 'yes'
139
- run : |
140
- mamba install numpy dpctl">=0.18.0dev0" cmake cython pytest ninja scikit-build ${{ env.NO_INTEL_CHANNELS }}
141
-
142
- - name : Install dpnp dependencies
143
- if : env.INSTALL_ONE_API != 'yes'
144
- run : |
145
- mamba install numpy dpctl">=0.18.0dev0" mkl-devel-dpcpp onedpl-devel tbb-devel dpcpp_linux-64 \
146
- cmake cython pytest ninja scikit-build ${{ env.CHANNELS }}
147
-
148
- - name : Install cuPy dependencies
149
- run : mamba install cupy
150
-
151
135
- name : Conda info
152
136
run : mamba info
153
137
@@ -178,7 +162,6 @@ jobs:
178
162
echo PROJECT_NUMBER=${PROJECT_NUMBER}
179
163
echo "PROJECT_NUMBER=$PROJECT_NUMBER" >> $GITHUB_ENV
180
164
181
- # https://github.com/marketplace/actions/doxygen-action
182
165
- name : Build backend docs
183
166
uses : mattnotmitt/doxygen-action@cbe72c8e402e8a3faa1f0b247ef90aa6c8e4ce74 # v1.9.8
184
167
with :
@@ -187,7 +170,6 @@ jobs:
187
170
- name : Copy backend docs
188
171
run : cp -r dpnp/backend/doc/html ${{ env.PUBLISH_DIR }}/backend_doc
189
172
190
- # https://github.com/marketplace/actions/github-pages-action
191
173
# The step is only used to build docs while pushing a PR to "master"
192
174
- name : Deploy docs
193
175
if : env.GH_EVENT_PUSH_UPSTREAM == 'true'
0 commit comments