File tree Expand file tree Collapse file tree 1 file changed +33
-6
lines changed Expand file tree Collapse file tree 1 file changed +33
-6
lines changed Original file line number Diff line number Diff line change 3535 shell : pwsh
3636
3737
38- - name : Launch MT5
38+ # - name: Launch MT5
39+ # shell: pwsh
40+ # run: |
41+ # $mt5Path = Resolve-Path "C:\Program Files\MetaTrader 5\terminal64.exe"
42+
43+ # # Launch with diagnostics
44+ # Start-Process $mt5Path -ArgumentList @(
45+ # "/portable",
46+ # "/headless",
47+ # "/config:config",
48+ # "/noreport"
49+ # ) -NoNewWindow
50+
51+ # # Verify process start
52+ # $attempts = 0
53+ # while ($attempts -lt 10) {
54+ # if (Get-Process terminal64 -ErrorAction SilentlyContinue) {
55+ # Write-Host "MT5 process detected"
56+ # break
57+ # }
58+ # $attempts++
59+ # Start-Sleep 5
60+ # }
61+
62+ # if (-not (Get-Process terminal64 -ErrorAction SilentlyContinue)) {
63+ # Get-Content ".\MetaTrader 5\logs\*.log" | Write-Host
64+ # throw "MT5 failed to start"
65+ # }
66+
67+ - name : Install MetaTrader5 Python package
68+ run : pip install MetaTrader5
69+
70+ - name : Run MT5 Test
3971 shell : pwsh
4072 run : |
4173 $mt5Path = Resolve-Path "C:\Program Files\MetaTrader 5\terminal64.exe"
6496 throw "MT5 failed to start"
6597 }
6698
67- - name : Install MetaTrader5 Python package
68- run : pip install MetaTrader5
6999
70- - name : Run MT5 Test
71- shell : pwsh
72- run : |
73100 python -c "import os, MetaTrader5 as mt5
74101 print('Python version:', os.sys.version)
75102 print('MetaTrader5 version:', mt5.__version__)
You can’t perform that action at this time.
0 commit comments