1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
This commit is contained in:
MoonTestUse1
2025-02-09 01:52:13 +06:00
parent 6b12169a07
commit e3e91406fa

View File

@@ -1,40 +1,12 @@
image: python:3.11
stages:
- test
- build
- deploy
variables:
SECRET_KEY: "your-super-secret-key-123"
test-backend:
image: python:3.11
stage: test
before_script:
- python -V
- python -m pip install --upgrade pip
- pip install pytest pytest-cov
- pip install -r backend/requirements.txt
script:
- cd backend
- python -m pytest -v tests/test_health.py
only:
- main
- Testing
test-frontend:
image: node:18
stage: test
before_script:
- cd frontend
- npm install
script:
- npm run test
only:
- main
- Testing
build-backend:
stage: build
image: docker:latest