From 585fe9745bff3792c71cd58b0e94d39ba74f8c64 Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Tue, 11 Aug 2026 19:38:41 +0800 Subject: [PATCH] test: type GitLab workflow script steps --- scripts/ci-workflow.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ci-workflow.spec.ts b/scripts/ci-workflow.spec.ts index 418f6e407f..f2c2751a26 100644 --- a/scripts/ci-workflow.spec.ts +++ b/scripts/ci-workflow.spec.ts @@ -229,7 +229,8 @@ describe('Python release workflows', () => { if (!isRecord(runtimeWheel) || !Array.isArray(runtimeWheel.script)) { throw new TypeError('GitLab CI must define the runtime wheel script') } - const macosCheck = runtimeWheel.script.find( + const runtimeScript: unknown[] = runtimeWheel.script + const macosCheck = runtimeScript.find( step => typeof step === 'string' && step.includes('PLATFORM" = macos-arm64'), ) if (typeof macosCheck !== 'string') {