File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 2525 run : |
2626 # Start installer with /auto and /portable, with timeout protection
2727 $process = Start-Process -FilePath ".\mt5setup.exe" -ArgumentList "/auto", "/portable" -PassThru
28- $process.WaitForExit(300 ) # 300 seconds = 5 minutes
28+ $process.WaitForExit(30000 ) # 300 seconds = 5 minutes
2929 if (-not $process.HasExited) {
3030 Write-Host "MT5 installer stuck, killing..."
3131 Stop-Process -Id $process.Id -Force
@@ -60,17 +60,17 @@ jobs:
6060 - name : Run Python inline script
6161 run : |
6262 python -c "
63- import MetaTrader5 as mt5
64- import time
63+ import MetaTrader5 as mt5
64+ import time
6565
66- print('Testing MT5 initialization...')
67- time.sleep(5) # Extra sleep to ensure MT5 ready
66+ print('Testing MT5 initialization...')
67+ time.sleep(5) # Extra sleep to ensure MT5 ready
6868
69- if not mt5.initialize():
70- print('Failed to initialize:', mt5.last_error())
71- exit(1)
72- else:
73- print('MT5 initialized successfully')
74- mt5.shutdown()
75- "
69+ if not mt5.initialize() :
70+ print('Failed to initialize:', mt5.last_error())
71+ exit(1)
72+ else :
73+ print('MT5 initialized successfully')
74+ mt5.shutdown()
75+ "
7676 shell: pwsh
You can’t perform that action at this time.
0 commit comments