Skip to content

Commit 7ef77cb

Browse files
author
Thierry RAMORASOAVINA
committed
Build the api-docs inside a python virtual environment
1 parent 6e7311e commit 7ef77cb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/api-docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
run: echo PATH="$PATH:/github/home/.local/bin" >> "$GITHUB_ENV"
5555
- name: Install doc build requirements
5656
run: |
57+
# Build the doc inside a virtual environment to make consistent use of dependencies
58+
python -m venv .venvdocs
59+
. .venvdocs/bin/activate
60+
5761
# Install package itself to install the samples datasets
5862
pip3 install .
5963
kh-download-datasets --force-overwrite
@@ -65,6 +69,7 @@ jobs:
6569
# Clone the Khiops Python tutorial repository while building the documentation
6670
- name: Build Sphinx Documentation
6771
run: |
72+
. .venvdocs/bin/activate
6873
cd doc
6974
./create-doc -t -d -g \
7075
${{ inputs.khiops-python-tutorial-revision || env.DEFAULT_KHIOPS_PYTHON_TUTORIAL_REVISION }}

0 commit comments

Comments
 (0)