fix: properly install pip before recipe-scrapers
Some checks failed
Basil CI/CD Pipeline / API Tests (pull_request) Failing after 25s
Basil CI/CD Pipeline / Code Linting (pull_request) Successful in 1m16s
Basil CI/CD Pipeline / Shared Package Tests (pull_request) Successful in 1m9s
Basil CI/CD Pipeline / Web Tests (pull_request) Successful in 1m22s
Basil CI/CD Pipeline / Security Scanning (pull_request) Successful in 1m22s
Basil CI/CD Pipeline / Build All Packages (pull_request) Has been skipped
Basil CI/CD Pipeline / E2E Tests (pull_request) Has been skipped
Basil CI/CD Pipeline / Build & Push Docker Images (pull_request) Has been skipped
Basil CI/CD Pipeline / Trigger Deployment (pull_request) Has been skipped

Use get-pip.py to install pip when it's not available, rather than relying
on ensurepip which claims success but doesn't actually install pip module.
Install recipe-scrapers with --user flag for more reliable installation.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Paul R Kartchner
2026-01-16 22:44:11 -07:00
parent fd196e3493
commit 3f23ba2415

View File

@@ -68,12 +68,20 @@ jobs:
- name: Setup Python dependencies
run: |
# node:20-bookworm already has Python 3.11 installed
# Just install pip if needed and then recipe-scrapers
# node:20-bookworm has Python 3.11 but not pip by default
python3 --version
python3 -m ensurepip --default-pip 2>/dev/null || echo "pip already installed"
python3 -m pip install --upgrade pip --break-system-packages
python3 -m pip install recipe-scrapers --break-system-packages
# Install pip using get-pip.py if pip module not available
if ! python3 -m pip --version 2>/dev/null; then
echo "Installing pip..."
curl -sS https://bootstrap.pypa.io/get-pip.py | python3 - --user
export PATH="$HOME/.local/bin:$PATH"
fi
# Install recipe-scrapers
python3 -m pip install --user recipe-scrapers
# Verify installation
python3 -c "import recipe_scrapers; print('✓ recipe-scrapers installed successfully')"
- name: Install dependencies