HERMES-GIELIE/.github/workflows/conversation-lifecycle.yml
nesquena-hermes a61880b977
Release: terminal-error lifecycle gate row (#6354, @franksong2702) (#6358)
* test: add terminal-error lifecycle matrix row

* test: reject empty terminal process rows

---------

Co-authored-by: Frank Song <franksong2702@gmail.com>
Co-authored-by: nesquena-hermes <agent@nesquena-hermes>
2026-07-20 10:52:18 +00:00

69 lines
2.1 KiB
YAML

name: Conversation lifecycle (informational)
# Scoped to the code this browser gate actually exercises — the chat
# render/streaming surface — so it doesn't spin up playwright+chromium on
# docs-only or unrelated changes. If none of these paths change, the run is
# skipped entirely (GitHub treats a path-filtered no-match as "not triggered").
on:
pull_request:
branches: [master]
paths:
- 'static/**'
- 'api/**.py'
- 'server.py'
- 'tests/browser_conversation_lifecycle.py'
- 'requirements*.txt'
- 'pyproject.toml'
- '.github/workflows/conversation-lifecycle.yml'
push:
branches: [master]
paths:
- 'static/**'
- 'api/**.py'
- 'server.py'
- 'tests/browser_conversation_lifecycle.py'
- 'requirements*.txt'
- 'pyproject.toml'
- '.github/workflows/conversation-lifecycle.yml'
jobs:
live-to-final:
runs-on: ubuntu-latest
timeout-minutes: 10
continue-on-error: true
strategy:
fail-fast: false
matrix:
scenario: [normal, terminal-error]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
**/pyproject.toml
.github/workflows/conversation-lifecycle.yml
- name: Install browser gate dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt playwright
python -m playwright install --with-deps chromium
- name: Run conversation lifecycle gate
env:
LIFECYCLE_ARTIFACT_DIR: lifecycle-artifacts
LIFECYCLE_SCENARIO: ${{ matrix.scenario }}
run: python tests/browser_conversation_lifecycle.py
- name: Upload failure artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: conversation-lifecycle-failure-${{ matrix.scenario }}
path: lifecycle-artifacts
if-no-files-found: ignore