Skip to content

Commit 129158e

Browse files
committed
fix(ci): Run all CI jobs on Windows containers
- Changed all jobs from ubuntu-latest to windows-latest - Replaced Linux find commands with Windows-compatible Python scripts - Updated syntax check to use os.walk() instead of find - All 7 CI jobs now run on Windows Jobs changed: - syntax-check: ubuntu-latest -> windows-latest - lint-check: ubuntu-latest -> windows-latest - import-check: ubuntu-latest -> windows-latest - type-check: ubuntu-latest -> windows-latest - config-validation: ubuntu-latest -> windows-latest - windows-build-test: already windows-latest This ensures all tests run in the same environment as the application
1 parent dc959b2 commit 129158e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
syntax-check:
11-
runs-on: ubuntu-latest
11+
runs-on: windows-latest
1212
name: Python Syntax Check
1313

1414
steps:
@@ -29,12 +29,12 @@ jobs:
2929
run: |
3030
echo "Checking Python syntax..."
3131
python -m py_compile main.py
32-
find core -name "*.py" -exec python -m py_compile {} \;
33-
find core/ui -name "*.py" -exec python -m py_compile {} \;
32+
python -c "import os, py_compile; [py_compile.compile(os.path.join(dp, f), doraise=True) for dp, dn, files in os.walk('core') if f.endswith('.py')]"
33+
python -c "import os, py_compile; [py_compile.compile(os.path.join(dp, f), doraise=True) for dp, dn, files in os.walk('core/ui') if f.endswith('.py')]"
3434
echo "✅ All files compile successfully"
3535
3636
lint-check:
37-
runs-on: ubuntu-latest
37+
runs-on: windows-latest
3838
name: Code Linting
3939

4040
steps:
@@ -60,7 +60,7 @@ jobs:
6060
echo "✅ No linting errors found"
6161
6262
import-check:
63-
runs-on: ubuntu-latest
63+
runs-on: windows-latest
6464
name: Import Validation
6565

6666
steps:
@@ -85,7 +85,7 @@ jobs:
8585
python -c "import core.logging_config; print('✅ core.logging_config imports successfully')"
8686
8787
type-check:
88-
runs-on: ubuntu-latest
88+
runs-on: windows-latest
8989
name: Type Validation
9090

9191
steps:
@@ -129,7 +129,7 @@ jobs:
129129
"
130130
131131
config-validation:
132-
runs-on: ubuntu-latest
132+
runs-on: windows-latest
133133
name: Configuration Validation
134134

135135
steps:
@@ -202,7 +202,7 @@ jobs:
202202
shell: cmd
203203

204204
summary:
205-
runs-on: ubuntu-latest
205+
runs-on: windows-latest
206206
name: Quality Summary
207207
needs: [syntax-check, lint-check, import-check, type-check, config-validation]
208208

0 commit comments

Comments
 (0)