From 61e3b3a6b164a3cf1c1651b9605e68090914d2c8 Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 5 May 2026 22:47:00 +0200 Subject: [PATCH] feat: update application version to 0.8.31 and enhance CI workflow - Bumped application version to 0.8.31 in both backend and frontend files. - Added pytest-backend job to the CI workflow for PostgreSQL integration testing, including database migrations and access layer checks. - Updated test.yml to trigger on pull requests to main and develop branches in addition to pushes. - Updated changelog to reflect the new version and changes made in this release. --- .gitea/workflows/test.yml | 58 +++++++++++++++++++++++++++++++++++++++ backend/version.py | 10 ++++++- frontend/src/version.js | 2 +- 3 files changed, 68 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 1d42718..9932821 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -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 diff --git a/backend/version.py b/backend/version.py index f97f3d3..366ab66 100644 --- a/backend/version.py +++ b/backend/version.py @@ -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", diff --git a/frontend/src/version.js b/frontend/src/version.js index 0491c25..302f8e9 100644 --- a/frontend/src/version.js +++ b/frontend/src/version.js @@ -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 = {