Skip to content

Commit

Permalink
Change some syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Mar 4, 2025
1 parent 04cd62c commit 7f8419d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ jobs:
# Main installation loop
for PKG in $PACKAGES; do
if [[ "${{matrix.TARGET}}" == win ]]; then
# Use PowerShell to run conda install with a timeout
powershell -Command "
$process = Start-Process conda -ArgumentList 'install', '-q', '-y', '$PKG' -NoNewWindow -PassThru;
$timeout = 30;
Expand All @@ -396,7 +397,7 @@ jobs:
break;
}
}
if ($process.ExitCode -ne 0) {
if ($process.HasExited -and $process.ExitCode -ne 0) {
Write-Host 'WARNING: $PKG not available or did not install correctly';
}
"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_pr_and_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ jobs:
# Main installation loop
for PKG in $PACKAGES; do
if [[ "${{matrix.TARGET}}" == win ]]; then
# Use PowerShell to run conda install with a timeout
powershell -Command "
$process = Start-Process conda -ArgumentList 'install', '-q', '-y', '$PKG' -NoNewWindow -PassThru;
$timeout = 30;
Expand All @@ -433,7 +434,7 @@ jobs:
break;
}
}
if ($process.ExitCode -ne 0) {
if ($process.HasExited -and $process.ExitCode -ne 0) {
Write-Host 'WARNING: $PKG not available or did not install correctly';
}
"
Expand Down

0 comments on commit 7f8419d

Please sign in to comment.