Skip to content

Commit 26a1b8d

Browse files
committed
udpate workflow again
1 parent b095496 commit 26a1b8d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,15 @@ jobs:
221221
poetry-version: ${{ env.POETRY_VERSION }}
222222
- name: Test project
223223
run: |
224+
$env:MG_HOST = (wsl hostname -I).Trim().Split(' ', [System.StringSplitOptions]::RemoveEmptyEntries)[0]
225+
if (-not $env:MG_HOST) {
226+
throw "Failed to resolve WSL IP address before tests."
227+
}
228+
$env:MG_PORT = "7687"
229+
Write-Host "Using Memgraph at $env:MG_HOST`:$env:MG_PORT"
230+
if (-not (Test-NetConnection -ComputerName $env:MG_HOST -Port $env:MG_PORT -InformationLevel Quiet)) {
231+
throw "Memgraph is not reachable from Windows at $env:MG_HOST`:$env:MG_PORT"
232+
}
224233
poetry install -E arrow -E docker -E dot
225234
$env:TF_USE_LEGACY_KERAS = "1"
226235
poetry run pytest -vvv -m "not slow and not ubuntu and not docker and not extras"

0 commit comments

Comments
 (0)