Skip to content

Commit 8160442

Browse files
committed
Skip generated lint/typecheck on Windows, run only on Linux
1 parent fc07774 commit 8160442

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

packages/http-client-python/eng/scripts/Test-Packages.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ try {
7373
& pip list
7474

7575
Invoke-LoggedCommand "npm run ci"
76+
77+
# Step 4: Run lint/mypy/pyright on generated SDK code (Linux only)
78+
if ($IsLinux) {
79+
Write-Host "`n=== Running lint on generated SDK code ===" -ForegroundColor Cyan
80+
Invoke-LoggedCommand "npm run lint:generated"
81+
82+
Write-Host "`n=== Running type checks on generated SDK code ===" -ForegroundColor Cyan
83+
Invoke-LoggedCommand "npm run typecheck:generated"
84+
} else {
85+
Write-Host "`nSkipping generated SDK lint/typecheck on Windows." -ForegroundColor Yellow
86+
}
87+
7688
Write-Host "All tests passed." -ForegroundColor Green
7789
}
7890
}

packages/http-client-python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"typecheck": "tsx ./eng/scripts/ci/typecheck.ts",
4747
"typecheck:generated": "tsx ./eng/scripts/ci/typecheck.ts --generated",
4848
"regenerate": "tsx ./eng/scripts/ci/regenerate.ts",
49-
"ci": "npm run test && npm run lint && npm run typecheck && npm run lint:generated && npm run typecheck:generated",
49+
"ci": "npm run test && npm run lint && npm run typecheck",
5050
"ci:generated": "tsx ./eng/scripts/ci/run-tests.ts --generator --env=ci",
5151
"change:version": "pnpm chronus version --ignore-policies --only @typespec/http-client-python",
5252
"change:add": "pnpm chronus add",

0 commit comments

Comments
 (0)