There was an error while loading. Please reload this page.
1 parent b095496 commit 26a1b8dCopy full SHA for 26a1b8d
1 file changed
.github/workflows/build-and-test.yml
@@ -221,6 +221,15 @@ jobs:
221
poetry-version: ${{ env.POETRY_VERSION }}
222
- name: Test project
223
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
233
poetry install -E arrow -E docker -E dot
234
$env:TF_USE_LEGACY_KERAS = "1"
235
poetry run pytest -vvv -m "not slow and not ubuntu and not docker and not extras"
0 commit comments