mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-10-09 03:20:54 +00:00
ci: validate Auto Fin package manifest
This commit is contained in:
parent
5e2b39f945
commit
5c0d8118e8
1 changed files with 15 additions and 3 deletions
18
.github/workflows/release-auto-fin.yml
vendored
18
.github/workflows/release-auto-fin.yml
vendored
|
|
@ -109,11 +109,23 @@ jobs:
|
|||
"${RUNNER_TEMP}/reme-auto-fin-smoke/bin/python" - <<'PY'
|
||||
from importlib.metadata import distribution
|
||||
|
||||
from reme.plugin_manifest import load_package_manifest
|
||||
|
||||
package = distribution("reme-auto-fin")
|
||||
plugins = {entry.name: entry for entry in package.entry_points if entry.group == "reme.plugins"}
|
||||
configs = {entry.name: entry for entry in package.entry_points if entry.group == "reme.configs"}
|
||||
assert plugins["auto-fin"].load().name == "auto-fin"
|
||||
assert configs["auto-fin"].load().is_file()
|
||||
assert plugins["auto-fin"].value == "reme_auto_fin"
|
||||
manifest = load_package_manifest("reme_auto_fin", plugin_name="auto-fin")
|
||||
assert set(manifest.backends) == {
|
||||
"auto_fin_data_step",
|
||||
"auto_fin_topic_step",
|
||||
"auto_fin_merge_step",
|
||||
}
|
||||
assert set(manifest.application_defaults["jobs"]) == {
|
||||
"auto_fin",
|
||||
"auto_fin_0930_cron",
|
||||
"auto_fin_1130_cron",
|
||||
"auto_fin_1800_cron",
|
||||
}
|
||||
PY
|
||||
|
||||
- name: Upload distributions
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue