Merge dev to main: Security improvements and comprehensive test infrastructure #39
+10
-11
@@ -10,24 +10,20 @@ jobs:
|
|||||||
backend-tests:
|
backend-tests:
|
||||||
name: Backend Tests
|
name: Backend Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: python:3.12-slim
|
|
||||||
env:
|
env:
|
||||||
SECRET_KEY: test-secret-key-for-ci-environment-32chars-minimum
|
SECRET_KEY: test-secret-key-for-ci-environment-32chars-minimum
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check workspace
|
- name: Install Python
|
||||||
run: |
|
run: |
|
||||||
pwd
|
apt-get update && apt-get install -y python3 python3-pip python3-venv
|
||||||
ls -la
|
|
||||||
ls -la dashboard/ || echo "dashboard directory not found"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cd dashboard/backend
|
cd dashboard/backend
|
||||||
pip install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
pip install -r requirements-dev.txt
|
pip3 install -r requirements-dev.txt
|
||||||
pip install pytest-timeout
|
pip3 install pytest-timeout
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
@@ -44,10 +40,13 @@ jobs:
|
|||||||
frontend-tests:
|
frontend-tests:
|
||||||
name: Frontend Tests
|
name: Frontend Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: node:20-slim
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Node.js
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cd dashboard/frontend
|
cd dashboard/frontend
|
||||||
|
|||||||
Reference in New Issue
Block a user