prvi kod za live uporabu
Some checks failed
ERP CI Pipeline / test (push) Has been cancelled

This commit is contained in:
mariomitte
2026-07-09 21:21:17 +02:00
parent 857bb65d52
commit 5d39e048ba
239 changed files with 25151 additions and 0 deletions

39
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,39 @@
name: ERP CI Pipeline
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
services:
db:
image: postgres:16-alpine
env:
POSTGRES_DB: erp_db
POSTGRES_PASSWORD: password
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -r backend/requirements.txt
pip install pytest pytest-django
- name: Run Unit Tests
env:
DATABASE_URL: postgres://postgres:password@localhost:5432/erp_db
run: |
# Pokrećemo testove iz našeg backend direktorija
pytest backend/modules/invoicing/tests/test_services.py
- name: Run Task Management Tests
env:
DATABASE_URL: postgres://postgres:password@localhost:5432/erp_db
run: |
pytest backend/modules/task_management/tests/test_services.py