File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Test MetaTrader5 Integration
1
+ name : Test | Test MetaTrader5 Integration
2
2
3
3
on :
4
4
push :
@@ -26,15 +26,23 @@ jobs:
26
26
Start-Process -FilePath .\mt5setup.exe -ArgumentList "/auto" -Wait
27
27
28
28
# Verify installation
29
- if (Test-Path "C:\Program Files\MetaTrader 5\terminal64.exe") {
29
+ $mtPath = "C:\Program Files\MetaTrader 5\terminal64.exe"
30
+ if (Test-Path $mtPath) {
30
31
Write-Host "MetaTrader 5 installed successfully"
32
+ Write-Host "MetaTrader 5 found at: $mtPath"
33
+
34
+ # List installation directory for debugging
35
+ Write-Host "Listing MetaTrader 5 installation directory:"
36
+ Get-ChildItem "C:\Program Files\MetaTrader 5"
31
37
} else {
32
38
Write-Error "MetaTrader 5 installation failed"
33
39
exit 1
34
40
}
35
41
36
42
# Start MT5 in portable mode
37
- Start-Process -FilePath "C:\Program Files\MetaTrader 5\terminal64.exe" -ArgumentList "/portable" -PassThru
43
+ $mtProcess = Start-Process -FilePath $mtPath -ArgumentList "/portable" -PassThru
44
+ $processId = $mtProcess.Id
45
+ Write-Host "Started MetaTrader 5 terminal with process ID: $processId"
38
46
Start-Sleep -Seconds 30
39
47
40
48
- name : Install Python dependencies
You can’t perform that action at this time.
0 commit comments