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
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user