ci: replace setup actions with apt-get for offline runner compatibility
Some checks failed
2026 World Cup Quant Platform - Production Deployment / Code Quality & Testing (push) Successful in 4m39s
2026 World Cup Quant Platform - Production Deployment / Deploy to Production VM via Rsync (push) Failing after 17s

This commit is contained in:
QuantBot
2026-06-16 21:44:47 +08:00
parent aa7e3bba76
commit 45127904a2

View File

@@ -8,28 +8,29 @@ on:
jobs:
test-and-lint:
name: Code Quality & Testing
runs-on: fifa2026-dedicated-runner
runs-on: ewoooc-dedicated-runner
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Setup Python Environment
run: |
apt-get update -qq
apt-get install -y -qq python3-pip python3-venv curl
python3 -m venv venv
echo "PATH=$PWD/venv/bin:$PATH" >> $GITHUB_ENV
- name: Install Backend Dependencies
run: pip install -r platform/backend/requirements.txt pytest
run: |
pip install -r platform/backend/requirements.txt pytest
- name: Run Backend Quant Engine Tests
run: pytest platform/backend/app/analytics/ || true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Setup Node.js Environment
run: |
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y nodejs
- name: Run Frontend Linting
run: |
@@ -40,7 +41,7 @@ jobs:
deploy-docker:
name: Deploy to Production VM via Rsync
needs: test-and-lint
runs-on: fifa2026-dedicated-runner
runs-on: ewoooc-dedicated-runner
if: github.ref == 'refs/heads/main'
steps: