Skip to content

Commit e4ef853

Browse files
Fix build documentation step (#194)
1 parent d4436be commit e4ef853

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/ci_cd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ jobs:
191191
192192
docs_build:
193193
name: Build Documentation
194-
runs-on: [self-hosted, Linux, pyrocky]
194+
runs-on: [self-hosted, Windows, pyrocky]
195195
if: |
196196
contains(github.event.pull_request.labels.*.name, 'docs') ||
197197
github.ref == 'refs/heads/main'
@@ -208,17 +208,17 @@ jobs:
208208

209209
- name: Create Python venv
210210
run: |
211-
python -m venv .venv-docs
211+
python -m venv .venv
212212
213213
- name: Install packages for documentation build
214214
run: |
215-
source .venv-docs/bin/activate
215+
.\.venv\Scripts\Activate.bat
216216
pip install .[doc]
217217
218218
- name: Build Source Documentation (HTML)
219219
run: |
220-
source .venv-docs/bin/activate
221-
make -C doc/ html --quiet
220+
.\.venv\Scripts\Activate.bat
221+
doc\make.bat html
222222
223223
- name: Upload HTML Documentation
224224
uses: actions/upload-artifact@v4
@@ -229,8 +229,8 @@ jobs:
229229

230230
- name: Build Source Documentation (PDF)
231231
run: |
232-
source .venv-docs/bin/activate
233-
make -C doc/ pdf --quiet
232+
.\.venv\Scripts\Activate.bat
233+
doc\make.bat pdf
234234
235235
- name: Upload PDF documentation
236236
uses: actions/upload-artifact@v4

src/ansys/rocky/core/launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def launch_rocky(
100100
if rocky_exe is None or not rocky_exe.is_file():
101101
raise FileNotFoundError(f"Rocky executable is not found.")
102102

103-
cmd = [rocky_exe, "--pyrocky", "--pyrocky-port", str(server_port)]
103+
cmd = [str(rocky_exe), "--pyrocky", "--pyrocky-port", str(server_port)]
104104
if headless:
105105
cmd.append("--headless")
106106
with contextlib.suppress(subprocess.TimeoutExpired):
@@ -180,7 +180,7 @@ def launch_freeflow( # pragma: no cover
180180
if freeflow_exe is None or not freeflow_exe.is_file():
181181
raise FileNotFoundError(f"Freeflow executable is not found.")
182182

183-
cmd = [freeflow_exe, "--pyrocky", "--pyrocky-port", str(server_port)]
183+
cmd = [str(freeflow_exe), "--pyrocky", "--pyrocky-port", str(server_port)]
184184
if headless:
185185
cmd.append("--headless")
186186
with contextlib.suppress(subprocess.TimeoutExpired):

0 commit comments

Comments
 (0)