Skip to content

Commit c24e776

Browse files
JusterZhuclaude
andcommitted
fix: resolve three pre-existing CI failures
1. Python Search — install pytest before running tests 2. Scaffold build — use separate directories per project to avoid top-level statements conflict between ClientProgram and UpgradeProgram 3. Template build — upgrade NuGet from v10.4.6 to v10.5.0-beta.4 to match updated FullIntegration/MinimalIntegration template API Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5bc6f7f commit c24e776

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
with:
2323
python-version: '3.12'
2424

25+
- name: Install test dependencies
26+
run: pip install pytest
2527
- name: Run BM25 search tests
2628
run: |
2729
python3 -m pytest scripts/tests/ -v
@@ -147,7 +149,7 @@ jobs:
147149
<ImplicitUsings>enable</ImplicitUsings>
148150
</PropertyGroup>
149151
<ItemGroup>
150-
<PackageReference Include="GeneralUpdate.Core" Version="10.4.6" />
152+
<PackageReference Include="GeneralUpdate.Core" Version="10.5.0-beta.4" />
151153
</ItemGroup>
152154
</Project>
153155
"@ | Out-File -FilePath "$testDir\TestProject.csproj" -Encoding UTF8
@@ -185,23 +187,26 @@ jobs:
185187
- name: Build scaffold projects
186188
run: |
187189
$scaffoldDir = ".claude/skills/generalupdate-init/project-scaffold"
190+
$rootDir = "C:\tmp\verify-scaffold"
188191
189-
# Create a temp solution
190-
$testDir = "C:\tmp\verify-scaffold"
191-
New-Item -ItemType Directory -Path $testDir -Force | Out-Null
192+
# Use separate subdirectories so each project only sees its own .cs files
193+
$clientDir = "$rootDir\Client"
194+
$upgradeDir = "$rootDir\Upgrade"
195+
New-Item -ItemType Directory -Path $clientDir -Force | Out-Null
196+
New-Item -ItemType Directory -Path $upgradeDir -Force | Out-Null
192197
193-
Copy-Item "$scaffoldDir\ClientApp.csproj" "$testDir\ClientApp.csproj"
194-
Copy-Item "$scaffoldDir\UpgradeApp.csproj" "$testDir\UpgradeApp.csproj"
195-
Copy-Item "$scaffoldDir\ClientProgram.cs" "$testDir\ClientProgram.cs"
196-
Copy-Item "$scaffoldDir\UpgradeProgram.cs" "$testDir\UpgradeProgram.cs"
198+
Copy-Item "$scaffoldDir\ClientApp.csproj" "$clientDir\ClientApp.csproj"
199+
Copy-Item "$scaffoldDir\UpgradeApp.csproj" "$upgradeDir\UpgradeApp.csproj"
200+
Copy-Item "$scaffoldDir\ClientProgram.cs" "$clientDir\Program.cs"
201+
Copy-Item "$scaffoldDir\UpgradeProgram.cs" "$upgradeDir\Program.cs"
197202
198203
# Build Client
199-
dotnet build "$testDir\ClientApp.csproj" 2>&1
204+
dotnet build "$clientDir\ClientApp.csproj" 2>&1
200205
if ($LASTEXITCODE -ne 0) { throw "ClientApp build failed" }
201206
echo "✅ ClientApp compiles"
202207
203208
# Build Upgrade
204-
dotnet build "$testDir\UpgradeApp.csproj" 2>&1
209+
dotnet build "$upgradeDir\UpgradeApp.csproj" 2>&1
205210
if ($LASTEXITCODE -ne 0) { throw "UpgradeApp build failed" }
206211
echo "✅ UpgradeApp compiles"
207212

0 commit comments

Comments
 (0)