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 (#499)
This commit is contained in:
parent
3d2ecc60d2
commit
940a923f06
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
|
required: false
|
||||||
default: false
|
default: false
|
||||||
type: boolean
|
type: boolean
|
||||||
|
verify_qwenpaw_dependencies:
|
||||||
|
description: Verify that independently published qwenpaw plugins are installable
|
||||||
|
required: false
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -79,10 +84,10 @@ jobs:
|
||||||
assert (static_dir() / "index.html").is_file()
|
assert (static_dir() / "index.html").is_file()
|
||||||
PY
|
PY
|
||||||
|
|
||||||
# qwenpaw composes independently released plugins. Keep this before the
|
# qwenpaw composes independently released plugins. Bootstrap releases may
|
||||||
# artifact upload so a core release cannot advertise an unavailable extra.
|
# skip this check to publish the reme-ai version required by those plugins.
|
||||||
- name: Verify released qwenpaw dependencies
|
- name: Verify released qwenpaw dependencies
|
||||||
if: inputs.expected_version != ''
|
if: inputs.expected_version != '' && inputs.verify_qwenpaw_dependencies
|
||||||
run: |
|
run: |
|
||||||
REME_WHEEL="$(pwd)/$(ls dist/reme/reme_ai-[0-9]*.whl)"
|
REME_WHEEL="$(pwd)/$(ls dist/reme/reme_ai-[0-9]*.whl)"
|
||||||
python -m venv "${RUNNER_TEMP}/reme-qwenpaw-package-smoke"
|
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
|
name: Release / Python packages
|
||||||
|
|
||||||
# reme-ai[qwenpaw] is verified before publication. Publish the independently
|
# reme-ai[qwenpaw] is normally verified before publication. For a bootstrap
|
||||||
# versioned reme-auto-fin and reme-daily-paper requirements first.
|
# 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
|
# Configure a PyPI Trusted Publisher for this repository, workflow, and its
|
||||||
# pypi environment before running the manual release.
|
# pypi environment before running the manual release.
|
||||||
|
|
||||||
|
|
@ -12,6 +13,11 @@ on:
|
||||||
description: Release version
|
description: Release version
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
verify_qwenpaw_dependencies:
|
||||||
|
description: Verify already-published Auto Fin and Daily Paper packages
|
||||||
|
required: true
|
||||||
|
default: true
|
||||||
|
type: boolean
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
@ -27,6 +33,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
expected_version: ${{ inputs.version }}
|
expected_version: ${{ inputs.version }}
|
||||||
upload_artifacts: true
|
upload_artifacts: true
|
||||||
|
verify_qwenpaw_dependencies: ${{ inputs.verify_qwenpaw_dependencies }}
|
||||||
|
|
||||||
publish-reme:
|
publish-reme:
|
||||||
needs: build
|
needs: build
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue