ci: replace setup actions with apt-get for offline runner compatibility
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user