Skip to content

Commit 0e4a5bd

Browse files
committed
CI: Temporary comment build doc with examples
1 parent 9aea9a4 commit 0e4a5bd

File tree

1 file changed

+83
-83
lines changed

1 file changed

+83
-83
lines changed

.github/workflows/ci_cd.yml

+83-83
Original file line numberDiff line numberDiff line change
@@ -169,89 +169,89 @@ jobs:
169169
# # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
170170
# # =================================================================================================
171171

172-
doc-build-with-examples:
173-
name: Documentation build with examples
174-
# if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
175-
runs-on: [ self-hosted, Windows, pyaedt ]
176-
needs: [doc-style]
177-
timeout-minutes: 720
178-
steps:
179-
- name: Install Git and checkout project
180-
uses: actions/checkout@v4
181-
182-
- name: Setup Python
183-
uses: actions/setup-python@v5
184-
with:
185-
python-version: ${{ env.MAIN_PYTHON_VERSION }}
186-
187-
- name: Create virtual environment
188-
run: |
189-
python -m venv .venv
190-
.venv\Scripts\Activate.ps1
191-
python -m pip install pip -U
192-
python -m pip install wheel setuptools -U
193-
python -c "import sys; print(sys.executable)"
194-
195-
- name: Install pyaedt and documentation dependencies
196-
run: |
197-
.venv\Scripts\Activate.ps1
198-
pip install .[doc]
199-
200-
- name: Retrieve PyAEDT version
201-
id: version
202-
run: |
203-
.venv\Scripts\Activate.ps1
204-
echo "PYAEDT_VERSION=$(python -c 'from pyaedt import __version__; print(__version__)')" >> $GITHUB_OUTPUT
205-
echo "PyAEDT version is: $(python -c "from pyaedt import __version__; print(__version__)")"
206-
207-
- name: Uninstall conflicting CI packages
208-
run: |
209-
.venv\Scripts\Activate.ps1
210-
pip uninstall vtk -y
211-
212-
- name: Install CI related dependencies
213-
run: |
214-
.venv\Scripts\Activate.ps1
215-
pip install --extra-index-url https://wheels.vtk.org .[ci]
216-
217-
# TODO: Update this step once pyaedt-examples is ready
218-
# NOTE: Use environment variable to keep the doctree and avoid redundant build for PDF pages
219-
- name: Build HTML documentation with examples
220-
env:
221-
SPHINXBUILD_KEEP_DOCTREEDIR: "1"
222-
run: |
223-
.venv\Scripts\Activate.ps1
224-
.\doc\make.bat clean
225-
.\doc\make.bat html
226-
227-
- name: Upload HTML documentation with examples artifact
228-
uses: actions/upload-artifact@v3
229-
with:
230-
name: documentation-examples-html
231-
path: doc/_build/html
232-
retention-days: 7
233-
234-
# TODO: Keeping this commented as reminder of https://github.com/ansys/pyaedt/issues/4296
235-
# # Verify that sphinx generates no warnings
236-
# - name: Check for warnings
237-
# run: |
238-
# .venv\Scripts\Activate.ps1
239-
# python doc/print_errors.py
240-
241-
# # Use environment variable to remove the doctree after the build of PDF pages
242-
# - name: Build PDF documentation with examples
243-
# env:
244-
# SPHINXBUILD_KEEP_DOCTREEDIR: "0"
245-
# run: |
246-
# .venv\Scripts\Activate.ps1
247-
# .\doc\make.bat pdf
248-
249-
# - name: Upload PDF documentation with examples artifact
250-
# uses: actions/upload-artifact@v3
251-
# with:
252-
# name: documentation-pdf
253-
# path: doc/_build/latex/*.pdf
254-
# retention-days: 7
172+
# doc-build-with-examples:
173+
# name: Documentation build with examples
174+
# # if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
175+
# runs-on: [ self-hosted, Windows, pyaedt ]
176+
# needs: [doc-style]
177+
# timeout-minutes: 720
178+
# steps:
179+
# - name: Install Git and checkout project
180+
# uses: actions/checkout@v4
181+
182+
# - name: Setup Python
183+
# uses: actions/setup-python@v5
184+
# with:
185+
# python-version: ${{ env.MAIN_PYTHON_VERSION }}
186+
187+
# - name: Create virtual environment
188+
# run: |
189+
# python -m venv .venv
190+
# .venv\Scripts\Activate.ps1
191+
# python -m pip install pip -U
192+
# python -m pip install wheel setuptools -U
193+
# python -c "import sys; print(sys.executable)"
194+
195+
# - name: Install pyaedt and documentation dependencies
196+
# run: |
197+
# .venv\Scripts\Activate.ps1
198+
# pip install .[doc]
199+
200+
# - name: Retrieve PyAEDT version
201+
# id: version
202+
# run: |
203+
# .venv\Scripts\Activate.ps1
204+
# echo "PYAEDT_VERSION=$(python -c 'from pyaedt import __version__; print(__version__)')" >> $GITHUB_OUTPUT
205+
# echo "PyAEDT version is: $(python -c "from pyaedt import __version__; print(__version__)")"
206+
207+
# - name: Uninstall conflicting CI packages
208+
# run: |
209+
# .venv\Scripts\Activate.ps1
210+
# pip uninstall vtk -y
211+
212+
# - name: Install CI related dependencies
213+
# run: |
214+
# .venv\Scripts\Activate.ps1
215+
# pip install --extra-index-url https://wheels.vtk.org .[ci]
216+
217+
# # TODO: Update this step once pyaedt-examples is ready
218+
# # NOTE: Use environment variable to keep the doctree and avoid redundant build for PDF pages
219+
# - name: Build HTML documentation with examples
220+
# env:
221+
# SPHINXBUILD_KEEP_DOCTREEDIR: "1"
222+
# run: |
223+
# .venv\Scripts\Activate.ps1
224+
# .\doc\make.bat clean
225+
# .\doc\make.bat html
226+
227+
# - name: Upload HTML documentation with examples artifact
228+
# uses: actions/upload-artifact@v3
229+
# with:
230+
# name: documentation-examples-html
231+
# path: doc/_build/html
232+
# retention-days: 7
233+
234+
# # TODO: Keeping this commented as reminder of https://github.com/ansys/pyaedt/issues/4296
235+
# # # Verify that sphinx generates no warnings
236+
# # - name: Check for warnings
237+
# # run: |
238+
# # .venv\Scripts\Activate.ps1
239+
# # python doc/print_errors.py
240+
241+
# # # Use environment variable to remove the doctree after the build of PDF pages
242+
# # - name: Build PDF documentation with examples
243+
# # env:
244+
# # SPHINXBUILD_KEEP_DOCTREEDIR: "0"
245+
# # run: |
246+
# # .venv\Scripts\Activate.ps1
247+
# # .\doc\make.bat pdf
248+
249+
# # - name: Upload PDF documentation with examples artifact
250+
# # uses: actions/upload-artifact@v3
251+
# # with:
252+
# # name: documentation-pdf
253+
# # path: doc/_build/latex/*.pdf
254+
# # retention-days: 7
255255

256256
# # =================================================================================================
257257
# # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv RUNNING ON SELF-HOSTED RUNNER vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

0 commit comments

Comments
 (0)