ci: Forgejo-Actions-Workflow für pytest bei jedem Push/PR
Läuft die Suite (213 Tests) offline mit nur '.[test]' — keine schweren KI-Libs nötig. In einem frischen Checkout-venv verifiziert: 213 passed. Voraussetzung: Actions-Runner auf der Forgejo-Instanz registriert und für das Repo aktiviert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
304bc02a07
commit
f3f275716c
1 changed files with 31 additions and 0 deletions
31
.forgejo/workflows/test.yml
Normal file
31
.forgejo/workflows/test.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
# Automatischer Testlauf bei jedem Push/PR.
|
||||
# Voraussetzung: Auf der Forgejo-Instanz muss ein Actions-Runner registriert
|
||||
# und für dieses Repo aktiviert sein (Repo → Einstellungen → Actions).
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [jamulix-optimized]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
pytest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Python einrichten
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Abhängigkeiten installieren
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
# Basis + Test-Extra (pytest). Die schweren KI-Libs (faster-whisper,
|
||||
# piper-tts) sind NICHT nötig: Tests laufen offline mit Fakes/Mocks.
|
||||
pip install -e '.[test]'
|
||||
|
||||
- name: Test-Suite
|
||||
run: python -m pytest -q
|
||||
Loading…
Add table
Add a link
Reference in a new issue