feat: update application version to 0.8.31 and enhance CI workflow
Some checks failed
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Failing after 3s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 34s
Some checks failed
Deploy Development / deploy (push) Successful in 37s
Test Suite / pytest-backend (push) Failing after 3s
Test Suite / lint-backend (push) Successful in 1s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Failing after 34s
- 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.
This commit is contained in:
parent
347af0c36e
commit
61e3b3a6b1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user