mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
ci: allow bootstrap release before qwenpaw plugins
This commit is contained in:
parent
6f38d201b6
commit
a744a698af
2 changed files with 17 additions and 5 deletions
11
.github/workflows/_build-python-packages.yml
vendored
11
.github/workflows/_build-python-packages.yml
vendored
|
|
@ -13,6 +13,11 @@ on:
|
|||
required: false
|
||||
default: false
|
||||
type: boolean
|
||||
verify_qwenpaw_dependencies:
|
||||
description: Verify that independently published qwenpaw plugins are installable
|
||||
required: false
|
||||
default: true
|
||||
type: boolean
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
@ -79,10 +84,10 @@ jobs:
|
|||
assert (static_dir() / "index.html").is_file()
|
||||
PY
|
||||
|
||||
# qwenpaw composes independently released plugins. Keep this before the
|
||||
# artifact upload so a core release cannot advertise an unavailable extra.
|
||||
# qwenpaw composes independently released plugins. Bootstrap releases may
|
||||
# skip this check to publish the reme-ai version required by those plugins.
|
||||
- name: Verify released qwenpaw dependencies
|
||||
if: inputs.expected_version != ''
|
||||
if: inputs.expected_version != '' && inputs.verify_qwenpaw_dependencies
|
||||
run: |
|
||||
REME_WHEEL="$(pwd)/$(ls dist/reme/reme_ai-[0-9]*.whl)"
|
||||
python -m venv "${RUNNER_TEMP}/reme-qwenpaw-package-smoke"
|
||||
|
|
|
|||
11
.github/workflows/release-python.yml
vendored
11
.github/workflows/release-python.yml
vendored
|
|
@ -1,7 +1,8 @@
|
|||
name: Release / Python packages
|
||||
|
||||
# reme-ai[qwenpaw] is verified before publication. Publish the independently
|
||||
# versioned reme-auto-fin and reme-daily-paper requirements first.
|
||||
# reme-ai[qwenpaw] is normally verified before publication. For a bootstrap
|
||||
# release where the plugins require this new reme-ai version, disable that
|
||||
# verification, publish reme-ai first, and then publish the plugins.
|
||||
# Configure a PyPI Trusted Publisher for this repository, workflow, and its
|
||||
# pypi environment before running the manual release.
|
||||
|
||||
|
|
@ -12,6 +13,11 @@ on:
|
|||
description: Release version
|
||||
required: true
|
||||
type: string
|
||||
verify_qwenpaw_dependencies:
|
||||
description: Verify already-published Auto Fin and Daily Paper packages
|
||||
required: true
|
||||
default: true
|
||||
type: boolean
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
@ -27,6 +33,7 @@ jobs:
|
|||
with:
|
||||
expected_version: ${{ inputs.version }}
|
||||
upload_artifacts: true
|
||||
verify_qwenpaw_dependencies: ${{ inputs.verify_qwenpaw_dependencies }}
|
||||
|
||||
publish-reme:
|
||||
needs: build
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue