ci: allow bootstrap release before qwenpaw plugins (#499)

This commit is contained in:
jinliyl 2026-08-27 17:23:53 +08:00 committed by GitHub
parent 3d2ecc60d2
commit 940a923f06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 5 deletions

View file

@ -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"

View file

@ -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