Skip to content

Commit

Permalink
f:m
Browse files Browse the repository at this point in the history
  • Loading branch information
vansangpfiev committed Oct 2, 2024
1 parent e10370f commit 32cef18
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/template-build-linux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,20 @@ jobs:
run: |
cd engine
make build CMAKE_EXTRA_FLAGS="${{ inputs.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ inputs.build-deps-cmake-flags }}"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Run e2e tests
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install requests
cd engine
python e2e-test/main.py
- name: Pre-package
run: |
cd engine
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/template-build-windows-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@ jobs:
cd engine
make build CMAKE_EXTRA_FLAGS="${{ inputs.cmake-flags }}" BUILD_DEPS_CMAKE_EXTRA_FLAGS="${{ inputs.build-deps-cmake-flags }}"
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Run e2e tests
run: |
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install requests
cd engine
python e2e-test/main.py
- name: Pre-package
run: |
cd engine
Expand Down
2 changes: 1 addition & 1 deletion engine/e2e-test/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def start_server_nix() -> bool:
start_time = time.time()
while time.time() - start_time < timeout:
# Use select to check if there's data to read from stdout or stderr
readable, _, _ = select.select([process.stdout, process.stderr], [], [], 0.1)
readable, _, _ = select.select([process.stdout, process.stderr], [], [], 3.0)

for stream in readable:
line = stream.readline()
Expand Down

0 comments on commit 32cef18

Please sign in to comment.