@@ -36,11 +36,11 @@ jobs:
3636 pull-requests : write
3737
3838 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 '
4444
4545 steps :
4646 - name : Cancel Previous Runs
@@ -101,16 +101,25 @@ jobs:
101101 with :
102102 fetch-depth : 0
103103
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+
104114 - name : Setup miniconda
105115 id : setup_miniconda
106116 continue-on-error : true
107117 uses : conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
108118 with :
109119 miniforge-version : latest
110120 use-mamba : ' true'
111- channels : conda-forge
112121 conda-remove-defaults : ' true'
113- python-version : ${{ env.python-ver }}
122+ environment-file : ' ${{ env.environment-file }}'
114123 activate-environment : ' docs'
115124
116125 - name : ReSetup miniconda
@@ -119,35 +128,10 @@ jobs:
119128 with :
120129 miniforge-version : latest
121130 use-mamba : ' true'
122- channels : conda-forge
123131 conda-remove-defaults : ' true'
124- python-version : ${{ env.python-ver }}
132+ environment-file : ' ${{ env.environment-file }}'
125133 activate-environment : ' docs'
126134
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-
151135 - name : Conda info
152136 run : mamba info
153137
@@ -178,7 +162,6 @@ jobs:
178162 echo PROJECT_NUMBER=${PROJECT_NUMBER}
179163 echo "PROJECT_NUMBER=$PROJECT_NUMBER" >> $GITHUB_ENV
180164
181- # https://github.com/marketplace/actions/doxygen-action
182165 - name : Build backend docs
183166 uses : mattnotmitt/doxygen-action@cbe72c8e402e8a3faa1f0b247ef90aa6c8e4ce74 # v1.9.8
184167 with :
@@ -187,7 +170,6 @@ jobs:
187170 - name : Copy backend docs
188171 run : cp -r dpnp/backend/doc/html ${{ env.PUBLISH_DIR }}/backend_doc
189172
190- # https://github.com/marketplace/actions/github-pages-action
191173 # The step is only used to build docs while pushing a PR to "master"
192174 - name : Deploy docs
193175 if : env.GH_EVENT_PUSH_UPSTREAM == 'true'
0 commit comments