fix(ci): use setup-python version for pipenv virtualenv#1195
fix(ci): use setup-python version for pipenv virtualenv#1195Strift merged 1 commit intomeilisearch:mainfrom
Conversation
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 meilisearch#1193 Signed-off-by: Vedant Madane <[email protected]>
📝 WalkthroughWalkthroughThe GitHub Actions documentation workflow has been updated to explicitly specify the Python interpreter when installing dependencies via Pipenv. The command now includes Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Strift
left a comment
There was a problem hiding this comment.
Hello @VedantMadane and thanks for this quick fix 🙌
Summary
Fixes #1193 - The documentation workflow was failing.
Problem
The documentation workflow failed because pipenv was using the system Python 3.12.3 instead of the Python 3.10 installed by
actions/setup-python. This caused anImportErrorwhen pipdeptree tried to run in the virtualenv with a different Python version:Solution
Explicitly specify
--python $(which python)when creating the pipenv virtualenv to ensure it uses the Python version installed byactions/setup-python.Testing
The fix ensures the virtualenv uses Python 3.10 as intended by the workflow configuration.
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.