feat: use setup-python@v6 with requirements.txt for dependency management
Some checks failed
Basil CI/CD Pipeline / Shared Package Tests (pull_request) Successful in 1m22s
Basil CI/CD Pipeline / Code Linting (pull_request) Successful in 1m25s
Basil CI/CD Pipeline / API Tests (pull_request) Failing after 1m25s
Basil CI/CD Pipeline / Web Tests (pull_request) Successful in 1m26s
Basil CI/CD Pipeline / Security Scanning (pull_request) Successful in 1m30s
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

- Add requirements.txt for Python dependencies
- Use actions/setup-python@v6 with pip caching
- Follow recommended GitHub Actions pattern for Python setup

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Paul R Kartchner
2026-01-16 22:45:31 -07:00
parent 3f23ba2415
commit 32b6e9fcfd
2 changed files with 10 additions and 16 deletions

View File

@@ -66,23 +66,16 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup Python dependencies
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
- name: Install Python dependencies
run: |
# node:20-bookworm has Python 3.11 but not pip by default
python3 --version
# 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')"
pip install -r packages/api/requirements.txt
python -c "import recipe_scrapers; print('✓ recipe-scrapers installed successfully')"
- name: Install dependencies
run: npm ci

View File

@@ -0,0 +1 @@
recipe-scrapers>=15.0.0