Skip to content

Commit

Permalink
add vm-connector in test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
olethanh committed Aug 29, 2024
1 parent b23f052 commit 9d2e2a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test-using-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ jobs:
tests-python:
name: "Test Python code"
runs-on: ubuntu-22.04
services:
# Run vm connector for the execution tests
vm-connector:
image: alephim/vm-connector:alpha
# env:
ports:
- 4021:4021

steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions tests/supervisor/test_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def test_create_execution(mocker):
await execution.start()
await execution.stop()


# This test depends on having a vm-connector running on port 4021
@pytest.mark.asyncio
async def test_create_execution_online(vm_hash: ItemHash = None):
"""
Expand Down Expand Up @@ -104,7 +104,7 @@ async def test_create_execution_online(vm_hash: ItemHash = None):
await execution.start()
await execution.stop()


# This test depends on having a vm-connector running on port 4021
@pytest.mark.asyncio
async def test_create_execution_legacy():
"""
Expand Down

0 comments on commit 9d2e2a3

Please sign in to comment.