Skip to content

Commit b91e295

Browse files
author
Thierry RAMORASOAVINA
committed
Build the api-docs inside a python virtual environment
1 parent 5e5eddb commit b91e295

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/api-docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
run: echo PATH="$PATH:/github/home/.local/bin" >> "$GITHUB_ENV"
5959
- name: Install doc build requirements
6060
run: |
61+
# Build the doc inside a virtual environment to make consistent use of dependencies
62+
python -m venv .venvdocs
63+
. .venvdocs/bin/activate
64+
6165
# Install package itself to install the samples datasets
6266
pip3 install .
6367
kh-download-datasets --force-overwrite --version ${{ inputs.khiops-samples-revision || env.DEFAULT_KHIOPS_SAMPLES_REVISION }}
@@ -69,6 +73,7 @@ jobs:
6973
# Clone the Khiops Python tutorial repository while building the documentation
7074
- name: Build Sphinx Documentation
7175
run: |
76+
. .venvdocs/bin/activate
7277
cd doc
7378
./create-doc -t -d -g \
7479
${{ inputs.khiops-python-tutorial-revision || env.DEFAULT_KHIOPS_PYTHON_TUTORIAL_REVISION }}

0 commit comments

Comments
 (0)