Skip to content

feat: Build a sandbox preview mode for uploads #172

feat: Build a sandbox preview mode for uploads

feat: Build a sandbox preview mode for uploads #172

Workflow file for this run

name: CI / PR Tests
on:
pull_request:
branches: [ "main", "dev", "uat" ]
jobs:
test-backend:
name: Backend Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
cd backend
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Pytest
env:
PYTHONPATH: .
run: |
cd backend
pytest tests/
test-worker:
name: Worker Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
cd worker
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Pytest
env:
PYTHONPATH: .
run: |
cd worker
# Notice: tests/data/massive_test_1.csv won't exist in CI, so the massive test will gracefully skip itself.
pytest tests/
test-frontend:
name: Frontend Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
run: |
cd frontend
npm ci
- name: Run Jest Tests
run: |
cd frontend
npm run test