docs(telegram): defer OCR and define image pipeline #215
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows Smoke | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| metatrader-file: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Python for tg-client-stdio | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install tg-client-stdio worker | |
| run: python -m pip install -e "external/tg-client-stdio[telegram]" | |
| - name: Configure | |
| run: > | |
| cmake -S . -B build-windows | |
| -DOPTIONX_BUILD_DEPS=ON | |
| -DOPTIONX_BUILD_TESTS=ON | |
| -DOPTIONX_BUILD_EXAMPLES=ON | |
| -DOPTIONX_LIGHTWEIGHT_BRIDGE_SMOKE_TESTS=ON | |
| - name: Build MetaTrader path discovery test | |
| run: cmake --build build-windows --config Debug --target metatrader_paths_test | |
| - name: Build MetaTrader file transport tests | |
| run: > | |
| cmake --build build-windows --config Debug --target | |
| metatrader_file_config_include_test | |
| metatrader_file_bridge_test | |
| metatrader_file_command_writer_test | |
| bot_binary_bridge_test | |
| bot_binary_protocol_test | |
| protocol_v1_bridge_test | |
| bridge_umbrella_include_test | |
| bridge_host_test | |
| - name: Build MetaTrader file smoke example | |
| run: cmake --build build-windows --config Debug --target metatrader_file_bridge_smoke | |
| - name: Build MetaTrader file command writer smoke example | |
| run: cmake --build build-windows --config Debug --target metatrader_file_command_writer_smoke | |
| - name: Build MetaTrader file end-to-end smoke example | |
| run: cmake --build build-windows --config Debug --target metatrader_file_end_to_end_smoke | |
| - name: Build BotBinary command builder smoke example | |
| run: cmake --build build-windows --config Debug --target bot_binary_command_builder_smoke | |
| - name: Build BotBinary bridge smoke example | |
| run: cmake --build build-windows --config Debug --target bot_binary_bridge_smoke | |
| - name: Build named-pipe bridge smoke example | |
| run: cmake --build build-windows --config Debug --target named_pipe_bridge_smoke | |
| - name: Build Bridge Protocol v1 smoke example | |
| run: cmake --build build-windows --config Debug --target protocol_v1_bridge_smoke | |
| - name: Build Bridge Protocol v1 named-pipe smoke example | |
| run: cmake --build build-windows --config Debug --target protocol_v1_named_pipe_bridge_smoke | |
| - name: Build Telegram archive parser smoke example | |
| run: cmake --build build-windows --config Debug --target telegram_archive_parser_smoke | |
| - name: Run MetaTrader file tests | |
| shell: pwsh | |
| run: | | |
| $env:PATH = "$PWD\build-windows\bin;$PWD\build-windows\Debug;$env:PATH" | |
| .\build-windows\Debug\metatrader_paths_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\metatrader_file_config_include_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\metatrader_file_bridge_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\metatrader_file_command_writer_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\bot_binary_bridge_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\bot_binary_protocol_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\protocol_v1_bridge_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\bridge_umbrella_include_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\bridge_host_test.exe --gtest_brief=1 | |
| .\build-windows\Debug\metatrader_file_bridge_smoke.exe --self-test | |
| .\build-windows\Debug\metatrader_file_command_writer_smoke.exe --self-test | |
| .\build-windows\Debug\metatrader_file_end_to_end_smoke.exe --self-test | |
| .\build-windows\Debug\bot_binary_command_builder_smoke.exe --self-test | |
| .\build-windows\Debug\bot_binary_bridge_smoke.exe --self-test | |
| .\build-windows\Debug\named_pipe_bridge_smoke.exe --self-test | |
| .\build-windows\Debug\protocol_v1_bridge_smoke.exe --self-test | |
| .\build-windows\Debug\protocol_v1_named_pipe_bridge_smoke.exe --self-test | |
| .\build-windows\Debug\telegram_archive_parser_smoke.exe | |
| - name: Test MetaEditor compile smoke script | |
| shell: pwsh | |
| timeout-minutes: 2 | |
| run: .\scripts\test-metaeditor-compile-smoke.ps1 -OutputDir build-windows\metaeditor-script-self-test | |
| - name: Test MetaTrader MQL installer script | |
| shell: pwsh | |
| timeout-minutes: 2 | |
| run: .\scripts\test-metatrader-mql-install.ps1 -OutputDir build-windows\metatrader-mql-install-self-test | |
| - name: Compile MetaTrader MQL examples when MetaEditor is available | |
| shell: pwsh | |
| timeout-minutes: 3 | |
| run: .\scripts\compile-metatrader-mql.ps1 -OutputDir build-windows\metaeditor-smoke -TimeoutSeconds 60 | |
| - name: Run tg-client-stdio Python tests | |
| run: python -m unittest discover -s external/tg-client-stdio/tests/python | |
| - name: Run tg-client-stdio OptionX consumer smoke | |
| run: python tests/tg_client_stdio_consumer_smoke.py | |
| - name: Configure tg-client-stdio C++ tests | |
| run: cmake -S external/tg-client-stdio -B build-tg-client-stdio -DTG_CLIENT_STDIO_BUILD_TESTS=ON | |
| - name: Build tg-client-stdio C++ tests | |
| run: cmake --build build-tg-client-stdio --config Debug --parallel 2 | |
| - name: Run tg-client-stdio C++ tests | |
| run: ctest --test-dir build-tg-client-stdio -C Debug --output-on-failure |