3CatEuforia

This commit is contained in:
Guillem Hernandez Sola
2026-06-30 15:41:52 +02:00
parent 52bfbe3a5a
commit 63b93d089f

View File

@@ -35,11 +35,10 @@ pipeline {
python3 -m venv venv
# ── Upgrade pip toolchain ──────────────────────────
. venv/bin/activate
pip install --upgrade pip wheel setuptools
venv/bin/pip install --upgrade pip wheel setuptools
# ── Core dependencies ──────────────────────────────
pip install -U \
venv/bin/pip install -U \
atproto \
playwright \
playwright-stealth \
@@ -53,19 +52,17 @@ pipeline {
grapheme
# ── yt-dlp: always upgrade to latest ──────────────
# TikTok extractor breaks frequently — latest is required
pip install --upgrade yt-dlp
pip show yt-dlp | grep -E "^(Name|Version)"
venv/bin/pip install --upgrade yt-dlp
venv/bin/pip show yt-dlp | grep -E "^(Name|Version)"
# ── curl_cffi: TikTok impersonation (REQUIRED) ─────
# Without this yt-dlp cannot bypass TikTok bot detection
pip install --upgrade curl-cffi
pip show curl-cffi | grep -E "^(Name|Version)"
python3 -c "import curl_cffi; print('curl_cffi OK')"
venv/bin/pip install --upgrade curl-cffi
venv/bin/pip show curl-cffi | grep -E "^(Name|Version)"
venv/bin/python3 -c "import curl_cffi; print('curl_cffi OK')"
# ── playwright-stealth version check ───────────────
pip show playwright-stealth | grep -E "^(Name|Version)"
python3 -c "
venv/bin/pip show playwright-stealth | grep -E "^(Name|Version)"
venv/bin/python3 -c "
try:
from playwright_stealth import stealth_sync
print('playwright_stealth OK (v1.x - stealth_sync)')
@@ -75,19 +72,20 @@ except ImportError:
"
# ── Sanity checks ──────────────────────────────────
python3 -c "import atproto; print('atproto OK')"
python3 -c "import playwright; print('playwright OK')"
python3 -c "import yt_dlp; print('yt_dlp OK')"
python3 -c "import httpx; print('httpx OK')"
python3 -c "import arrow; print('arrow OK')"
python3 -c "import moviepy; print('moviepy OK')"
venv/bin/python3 -c "import atproto; print('atproto OK')"
venv/bin/python3 -c "import playwright; print('playwright OK')"
venv/bin/python3 -c "import yt_dlp; print('yt_dlp OK')"
venv/bin/python3 -c "import httpx; print('httpx OK')"
venv/bin/python3 -c "import arrow; print('arrow OK')"
venv/bin/python3 -c "import moviepy; print('moviepy OK')"
# ── System tools ───────────────────────────────────
ffmpeg -version | head -1
ffprobe -version | head -1
# ── Playwright browser binaries ────────────────────
playwright install chromium
PLAYWRIGHT_BROWSERS_PATH=/var/jenkins_home/.playwright-browsers \
venv/bin/playwright install chromium
'''
}
}