File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,22 +223,6 @@ jobs:
223223 uses : abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0
224224 with :
225225 poetry-version : ${{ env.POETRY_VERSION }}
226- - name : Ensure Memgraph is still running (WSL)
227- shell : wsl-bash {0} # root shell
228- run : |
229- mkdir -p /var/lib/memgraph/data-windows-${{ matrix.python-version }}
230- chown -R memgraph:memgraph /var/lib/memgraph/data-windows-${{ matrix.python-version }}
231- for i in {1..60}; do
232- if timeout 1 bash -c "echo > /dev/tcp/127.0.0.1/7687" 2>/dev/null; then
233- echo "Memgraph is ready."
234- exit 0
235- fi
236- echo "Waiting for Memgraph... ($i/60)"
237- sleep 1
238- done
239- echo "Memgraph did not become ready in time."
240- ps aux | grep memgraph || true
241- exit 1
242226 - name : Test project
243227 run : |
244228 $env:MG_HOST = (wsl hostname -I).Trim().Split(' ', [System.StringSplitOptions]::RemoveEmptyEntries)[0]
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- import os
1615from typing import Optional
1716import sys
1817
2726 allow_module_level = True ,
2827 )
2928
30- print (
31- f"[test_ogm] Connecting to Memgraph at host={ os .getenv ('MG_HOST' , '127.0.0.1' )} "
32- f"port={ os .getenv ('MG_PORT' , '7687' )} " ,
33- flush = True ,
34- )
3529db = Memgraph ()
3630
3731
You can’t perform that action at this time.
0 commit comments