deer-flow/.github/workflows/jev-plugin-package.yml
Wenchao An df63139321
feat(plugins): add standalone Jev context pruning example (#5731)
* feat(plugins): add standalone Jev context pruning example

* fix(plugins): address Jev pruning review findings

* fix(examples): package Jev plugin with DeerFlow license

* fix(examples): address Jev plugin review feedback

* docs(examples): remove unrelated Jev project reference

* test(examples): isolate Jev live script import path

* Update branch pattern for push event

* Fix YAML syntax for branch pattern

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-09-24 20:02:36 +08:00

48 lines
1.7 KiB
YAML

name: Jev Plugin Package
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- 'examples/deerflow-extension-jev-context/**'
- 'backend/packages/extension-api/**'
- 'backend/packages/harness/deerflow/extensions/**'
- '.github/workflows/jev-plugin-package.yml'
push:
branches: [main, "*-dev"]
paths:
- 'examples/deerflow-extension-jev-context/**'
- 'backend/packages/extension-api/**'
- 'backend/packages/harness/deerflow/extensions/**'
- '.github/workflows/jev-plugin-package.yml'
permissions:
contents: read
concurrency:
group: jev-plugin-package-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
installed-package:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- uses: astral-sh/setup-uv@v7
with:
version: '0.11.1'
- name: Install host dependencies
working-directory: backend
run: uv sync --locked
- name: Build and install the independent wheel
run: |
uv build --wheel examples/deerflow-extension-jev-context --out-dir "$RUNNER_TEMP/jev-wheel"
uv pip install --python backend/.venv/bin/python --no-deps --target "$RUNNER_TEMP/jev-installed" "$RUNNER_TEMP"/jev-wheel/*.whl
- name: Verify installed entry point through the host
run: backend/.venv/bin/python examples/deerflow-extension-jev-context/scripts/verify_package.py --installed-dir "$RUNNER_TEMP/jev-installed"