fix: reinstall workflow deps on cached venvs

This commit is contained in:
2026-06-21 23:17:57 +09:00
parent febd85d95e
commit 610b9b1330
5 changed files with 19 additions and 2 deletions
+1
View File
@@ -71,6 +71,7 @@ jobs:
else
echo "=== venv 캐시 히트: $("$VENV/bin/python" --version 2>&1) ==="
fi
"$VENV/bin/pip" install requests pyyaml openpyxl --quiet
echo "$VENV/bin" >> $GITHUB_PATH
- name: Install Node Dependencies
+1
View File
@@ -120,6 +120,7 @@ jobs:
"$VENV/bin/pip" install requests beautifulsoup4 pyyaml --quiet
ls -dt "$VENV_BASE"/*/ 2>/dev/null | tail -n +3 | xargs rm -rf 2>/dev/null || true
fi
"$VENV/bin/pip" install requests beautifulsoup4 pyyaml --quiet
echo "$VENV/bin" >> $GITHUB_PATH
- name: "[CRITICAL] No Direct API Trading Gate"
@@ -90,6 +90,7 @@ jobs:
"$VENV/bin/pip" install --upgrade pip --quiet
"$VENV/bin/pip" install requests beautifulsoup4 pyyaml openpyxl --quiet
fi
"$VENV/bin/pip" install requests beautifulsoup4 pyyaml openpyxl --quiet
echo "$VENV/bin" >> $GITHUB_PATH
- name: "[CRITICAL] No Direct API Trading Gate"
+13
View File
@@ -28,6 +28,19 @@ jobs:
git fetch origin main --depth=1
git reset --hard FETCH_HEAD
- name: Setup Python Environment
run: |
VENV_BASE=/volume1/gitea/python_venv
REQ_HASH=$(md5sum tools/validate_snapshot_admin_workflow_v1.py 2>/dev/null | cut -d' ' -f1 || echo "snapshot-admin-default")
VENV="$VENV_BASE/$REQ_HASH"
if [ ! -f "$VENV/bin/python" ]; then
mkdir -p "$VENV_BASE"
/usr/bin/python3 -m venv "$VENV"
"$VENV/bin/pip" install --upgrade pip --quiet
fi
"$VENV/bin/pip" install pyyaml --quiet
echo "$VENV/bin" >> $GITHUB_PATH
- name: Validate Snapshot Admin Workflow
run: python3 tools/validate_snapshot_admin_workflow_v1.py