瀏覽代碼

refactor(python): drop now-always-true build.if

python-release.yml only triggers on workflow_dispatch, so build.if:
github.event_name == 'workflow_dispatch' is always true and redundant; remove it
(the exact event set is already pinned in the spec). Update the spec assertion
accordingly.
Chinesezjc 2 月之前
父節點
當前提交
7214d0d958
共有 2 個文件被更改,包括 0 次插入 和 2 次删除
  1. 0 1
      .github/workflows/python-release.yml
  2. 0 1
      scripts/ci-workflow.spec.ts

+ 0 - 1
.github/workflows/python-release.yml

@@ -25,7 +25,6 @@ concurrency:
 jobs:
   build:
     name: Build four wheels
-    if: github.event_name == 'workflow_dispatch'
     uses: ./.github/workflows/build-exe-for-python-sdk.yml
     with:
       targets: node24-linux-x64,node24-linux-arm64,node24-macos-arm64

+ 0 - 1
scripts/ci-workflow.spec.ts

@@ -291,7 +291,6 @@ describe('Python release workflows', () => {
     if (!isRecord(workflow.on)) throw new TypeError('python-release workflow must define on')
     expect(Object.keys(workflow.on)).toEqual(['workflow_dispatch'])
     expect(build).toMatchObject({
-      if: "github.event_name == 'workflow_dispatch'",
       uses: './.github/workflows/build-exe-for-python-sdk.yml',
       with: {
         targets: 'node24-linux-x64,node24-linux-arm64,node24-macos-arm64',