feature/improve-tag-organization-ux #8
@@ -68,12 +68,23 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Python and dependencies
|
- name: Setup Python and dependencies
|
||||||
run: |
|
run: |
|
||||||
# Check if python3 is available, install if not
|
# Try to install Python and pip if needed
|
||||||
if ! command -v python3 &> /dev/null; then
|
if ! command -v python3 &> /dev/null; then
|
||||||
apt-get update -qq && apt-get install -y -qq python3 python3-pip
|
echo "Python3 not found, attempting to install..."
|
||||||
|
if command -v apt-get &> /dev/null; then
|
||||||
|
apt-get update -qq && apt-get install -y -qq python3 python3-pip
|
||||||
|
elif command -v apk &> /dev/null; then
|
||||||
|
apk add --no-cache python3 py3-pip
|
||||||
|
else
|
||||||
|
echo "No package manager found, trying to continue without Python installation..."
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# Install recipe-scrapers using python3 -m pip (more reliable than pip3 command)
|
||||||
|
if command -v python3 &> /dev/null; then
|
||||||
|
python3 -m pip install --user recipe-scrapers || pip3 install --user recipe-scrapers || echo "Warning: Could not install recipe-scrapers"
|
||||||
|
else
|
||||||
|
echo "Warning: Python3 not available, scraper tests will be skipped"
|
||||||
fi
|
fi
|
||||||
# Install recipe-scrapers
|
|
||||||
pip3 install recipe-scrapers
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|||||||
Reference in New Issue
Block a user