Complete testing system: pyproject.toml (pytest markers), test.sh orchestrator with auto app start/stop and colorful summary, pre-push hook, Gitea Actions workflow. New QA tests: API health (7 endpoints), responsive (3 viewports), log monitoring (ERROR/ORA-/Traceback detection), real GoMag sync, PL/SQL package validation, smoke prod (read-only). Converted test_app_basic.py and test_integration.py to pytest. Added pytestmark to all existing tests (unit/e2e/oracle). E2E conftest upgraded: console error collector, screenshot on failure, auto-detect live app on :5003. Usage: ./test.sh ci (30s) | ./test.sh full (2-3min) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
39 lines
847 B
YAML
39 lines
847 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches-ignore: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
fast-tests:
|
|
runs-on: [self-hosted]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run fast tests (unit + e2e)
|
|
run: ./test.sh ci
|
|
|
|
full-tests:
|
|
runs-on: [self-hosted, oracle]
|
|
needs: fast-tests
|
|
if: github.event_name == 'pull_request'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Run full tests (with Oracle)
|
|
run: ./test.sh full
|
|
env:
|
|
ORACLE_DSN: ${{ secrets.ORACLE_DSN }}
|
|
ORACLE_USER: ${{ secrets.ORACLE_USER }}
|
|
ORACLE_PASSWORD: ${{ secrets.ORACLE_PASSWORD }}
|
|
|
|
- name: Upload QA reports
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: qa-reports
|
|
path: qa-reports/
|
|
retention-days: 30
|