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') {