Mandantenfähigkeit V1.1 #11

Merged
Lars merged 6 commits from develop into main 2026-05-05 23:11:50 +02:00
3 changed files with 68 additions and 2 deletions
Showing only changes of commit 61e3b3a6b1 - Show all commits

View File

@ -3,11 +3,69 @@ name: Test Suite
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_run:
workflows: ["Deploy Development", "Deploy Production"]
types: [completed]
jobs:
# Checkout + PostgreSQL-Service + Migrationen + pytest (Unit + Mandanten-Integration).
# Unabhängig von Self-Host-Pfaden unter lint-backend/build-frontend.
pytest-backend:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16-alpine
env:
POSTGRES_USER: shinkan_ci
POSTGRES_PASSWORD: shinkan_ci_secret
POSTGRES_DB: shinkan_ci
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U shinkan_ci -d shinkan_ci"
--health-interval 5s
--health-timeout 5s
--health-retries 12
env:
DB_HOST: postgres
DB_PORT: "5432"
DB_NAME: shinkan_ci
DB_USER: shinkan_ci
DB_PASSWORD: shinkan_ci_secret
ACCESS_LAYER_INTEGRATION: "1"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Backend-Abhängigkeiten installieren
run: |
cd backend
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Access-layer Router-Hinweis (strikt)
env:
ACCESS_LAYER_STRICT: "1"
run: python backend/scripts/check_access_layer_hints.py
- name: Datenbankmigrationen anwenden
run: |
cd backend
python run_migrations.py
- name: pytest (Unit + Integration)
env:
SKIP_DB_MIGRATE: "1"
run: |
cd backend
python -m pytest tests/ -v --tb=short
lint-backend:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

View File

@ -1,6 +1,6 @@
# Shinkan Jinkendo Version Information
APP_VERSION = "0.8.30"
APP_VERSION = "0.8.31"
BUILD_DATE = "2026-05-05"
DB_SCHEMA_VERSION = "20260505041"
@ -27,6 +27,14 @@ MODULE_VERSIONS = {
}
CHANGELOG = [
{
"version": "0.8.31",
"date": "2026-05-05",
"changes": [
"CI (Gitea): Job pytest-backend — Checkout, Postgres-Service, run_migrations, pytest (+ ACCESS_LAYER_INTEGRATION), ACCESS_LAYER_STRICT auf Router-Hinweis-Script",
"Workflow test.yml: pull_request auf main/develop zusätzlich zu push",
],
},
{
"version": "0.8.30",
"date": "2026-05-05",

View File

@ -1,6 +1,6 @@
// Shinkan Jinkendo Frontend Version
export const APP_VERSION = "0.8.30"
export const APP_VERSION = "0.8.31"
export const BUILD_DATE = "2026-05-05"
export const PAGE_VERSIONS = {