mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-30 00:47:36 +00:00
Some checks failed
CI and Release / Docker / Build and test / amd64 (push) Has been cancelled
CI and Release / Docker / Build and test / arm64 (push) Has been cancelled
Security / CodeQL / Analyze python (push) Has been cancelled
CI / Python quality / Pre-commit (push) Has been cancelled
CI / Python tests / Unit Tests - py3.12 (push) Has been cancelled
CI / Python tests / Unit Tests - py3.13 (push) Has been cancelled
CI / Python tests / Unit Tests - py3.14 (push) Has been cancelled
CI / Python packages / Build and verify distributions (push) Has been cancelled
CI / Python quality / GitHub Actions (push) Has been cancelled
CI / Python tests / Hermes embedded - ubuntu-latest (push) Has been cancelled
CI / Python tests / Hermes embedded - windows-latest (push) Has been cancelled
CI / Python tests / Unit Tests - py3.11 (push) Has been cancelled
CI / ReMe Studio / Studio checks (push) Has been cancelled
Deploy / Documentation / Build documentation (push) Has been cancelled
CI / Windows / CLI smoke - py3.11 (push) Has been cancelled
Security / CodeQL / Analyze javascript-typescript (push) Has been cancelled
CI and Release / Docker / Publish multi-platform tags (push) Has been cancelled
Deploy / Documentation / deploy (push) Has been cancelled
* refactor(core): reorganize the ReMe runtime and shared helpers * test(status): import the base component from its canonical module * test: remove redundant unit checks * refactor(core): use canonical runtime imports and shared CLI discovery Restore evolve behavior to the base branch and update its imports. Use Application as the runtime entry point and encode SSE in the HTTP service. * fix(cli): honor caller config when service replay is incomplete Use partial startup overrides for port probes and resolve named configs before requesting the service process working directory.
128 lines
4.6 KiB
YAML
128 lines
4.6 KiB
YAML
# 发布操作手册:
|
||
# 1. 先将 plugins/auto-fin/pyproject.toml 中的 project.version 更新为待发布版本并合入目标分支。
|
||
# 2. 确认插件依赖的 reme-ai 版本已经发布到 PyPI,安装插件 wheel 时会解析该依赖。
|
||
# 3. 确认 PyPI Trusted Publisher 已绑定本仓库、此工作流和 pypi environment,且 PyPI 上不存在相同版本。
|
||
# 4. 在 GitHub 仓库的 Actions 页面选择“Release / Auto Fin plugin”,点击“Run workflow”。
|
||
# 5. 选择目标分支并运行;发布版本直接读取该提交的 project.version。
|
||
#
|
||
# 推荐发布顺序:reme-ai -> reme-auto-fin -> QwenPaw 更新依赖并通过 plugins: [auto-fin] 启用。
|
||
# 当前仅支持 workflow_dispatch 手动触发,不会因 push、tag 或 release 自动发布。
|
||
|
||
name: Release / Auto Fin plugin
|
||
|
||
run-name: Publish reme-auto-fin ${{ github.ref_name }}
|
||
|
||
on:
|
||
workflow_dispatch:
|
||
|
||
permissions:
|
||
contents: read
|
||
|
||
concurrency:
|
||
group: publish-reme-auto-fin
|
||
cancel-in-progress: false
|
||
|
||
jobs:
|
||
build:
|
||
runs-on: ubuntu-latest
|
||
timeout-minutes: 45
|
||
outputs:
|
||
version: ${{ steps.package.outputs.version }}
|
||
|
||
steps:
|
||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||
with:
|
||
persist-credentials: false
|
||
|
||
- name: Set up Python
|
||
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
||
with:
|
||
python-version: '3.11'
|
||
|
||
- name: Install test and build dependencies
|
||
run: |
|
||
python -m pip install --upgrade pip
|
||
python -m pip install build pytest pytest-asyncio twine
|
||
python -m pip install -e ".[core]"
|
||
python -m pip install --no-deps -e plugins/auto-fin
|
||
|
||
- name: Read plugin version
|
||
id: package
|
||
run: |
|
||
python - <<'PY'
|
||
import os
|
||
import tomllib
|
||
from pathlib import Path
|
||
|
||
project = tomllib.loads(Path("plugins/auto-fin/pyproject.toml").read_text(encoding="utf-8"))["project"]
|
||
with Path(os.environ["GITHUB_OUTPUT"]).open("a", encoding="utf-8") as output:
|
||
print(f"version={project['version']}", file=output)
|
||
PY
|
||
|
||
- name: Run Auto Fin tests
|
||
run: python -m pytest plugins/auto-fin -q
|
||
|
||
- name: Build and check distributions
|
||
run: |
|
||
mkdir -p dist/auto-fin
|
||
python -m build plugins/auto-fin --outdir dist/auto-fin
|
||
python -m twine check dist/auto-fin/*
|
||
|
||
- name: Verify distributions and isolated installation
|
||
run: |
|
||
AUTO_FIN_WHEEL="$(pwd)/$(ls dist/auto-fin/reme_auto_fin-*.whl)"
|
||
AUTO_FIN_SDIST="$(pwd)/$(ls dist/auto-fin/reme_auto_fin-*.tar.gz)"
|
||
python -m zipfile -l "${AUTO_FIN_WHEEL}" | grep 'dist-info/licenses/LICENSE'
|
||
python -m tarfile -l "${AUTO_FIN_SDIST}" | grep '/LICENSE'
|
||
python -m venv "${RUNNER_TEMP}/reme-auto-fin-smoke"
|
||
"${RUNNER_TEMP}/reme-auto-fin-smoke/bin/python" -m pip install \
|
||
"reme-ai[as]" "${AUTO_FIN_WHEEL}"
|
||
cd "${RUNNER_TEMP}"
|
||
"${RUNNER_TEMP}/reme-auto-fin-smoke/bin/python" - <<'PY'
|
||
from importlib.metadata import distribution
|
||
|
||
from reme.plugin import PluginManager
|
||
|
||
package = distribution("reme-auto-fin")
|
||
plugins = {entry.name: entry for entry in package.entry_points if entry.group == "reme.plugins"}
|
||
assert plugins["auto-fin"].value == "reme_auto_fin"
|
||
plugin, = PluginManager.discover(["auto-fin"]).plugins
|
||
assert {backend.name for backend in plugin.backends} == {
|
||
"auto_fin_data_step",
|
||
"auto_fin_topic_step",
|
||
"auto_fin_research_step",
|
||
"auto_fin_digest_step",
|
||
}
|
||
assert set(plugin.config["jobs"]) == {
|
||
"auto_fin",
|
||
"auto_fin_cron",
|
||
}
|
||
PY
|
||
|
||
- name: Upload distributions
|
||
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
||
with:
|
||
name: reme-auto-fin-${{ steps.package.outputs.version }}
|
||
path: dist/auto-fin/
|
||
if-no-files-found: error
|
||
|
||
publish:
|
||
needs: build
|
||
runs-on: ubuntu-latest
|
||
timeout-minutes: 10
|
||
environment: pypi
|
||
permissions:
|
||
contents: read
|
||
id-token: write
|
||
|
||
steps:
|
||
- name: Download distributions
|
||
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
||
with:
|
||
name: reme-auto-fin-${{ needs.build.outputs.version }}
|
||
path: dist/auto-fin
|
||
|
||
- name: Publish reme-auto-fin
|
||
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
|
||
with:
|
||
packages-dir: dist/auto-fin
|