Skip to content

Commit acf2537

Browse files
committed
sanity check
1 parent aea855f commit acf2537

File tree

1 file changed

+33
-6
lines changed

1 file changed

+33
-6
lines changed

.github/workflows/test-metatrader5-integration.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,39 @@ jobs:
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"
@@ -64,12 +96,7 @@ jobs:
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__)

0 commit comments

Comments
 (0)