mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
pipe fix
This commit is contained in:
@@ -1,40 +1,12 @@
|
|||||||
image: python:3.11
|
image: python:3.11
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
SECRET_KEY: "your-super-secret-key-123"
|
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:
|
build-backend:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user