Skip to content

Commit 16530b7

Browse files
committed
fix(ci): use setup-python version for pipenv virtualenv
The documentation workflow was failing because pipenv was using the system Python 3.12 instead of the Python 3.10 installed by actions/setup-python. This caused an ImportError when pipdeptree tried to run in the virtualenv with a different Python version. Fix by explicitly specifying --python to ensure pipenv creates the virtualenv with the correct Python version. Fixes #1193 Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
1 parent 6003393 commit 16530b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
pipx install pipenv
4343
- name: Install dependencies
4444
run: |
45-
pipenv install --dev
45+
pipenv --python $(which python) install --dev
4646
pipenv install sphinx
4747
pipenv install sphinx_rtd_theme
4848
- name: Build docs

0 commit comments

Comments
 (0)