Skip to content

Commit 90b99cc

Browse files
committed
ci: report MSI destinations when Python validation fails
1 parent 8040cf6 commit 90b99cc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/hooks-test.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,13 @@ jobs:
9494
$venv = Join-Path $env:RUNNER_TEMP 'venv with spaces & symbols'
9595
& $python -m venv $venv
9696
& (Join-Path $venv 'Scripts\python.exe') -m pip --version
97+
- name: Show installer destinations after a failure
98+
if: failure()
99+
run: |
100+
foreach ($directory in @($env:TEMP, (Join-Path $env:WINDIR 'Temp'))) {
101+
Get-ChildItem -LiteralPath $directory -Filter 'MSI*.log' -ErrorAction SilentlyContinue |
102+
ForEach-Object {
103+
Write-Output "Installer log: $($_.FullName)"
104+
Select-String -LiteralPath $_.FullName -Pattern 'Command Line|TARGETDIR|TargetDir|SourceDir|File: python.exe|Return value 3|MainEngineThread is returning'
105+
}
106+
}

0 commit comments

Comments
 (0)