diff --git a/.github/workflows/e2e-subtensor-tests.yml b/.github/workflows/e2e-subtensor-tests.yml index b4dc3120f..7e3d4a1d3 100644 --- a/.github/workflows/e2e-subtensor-tests.yml +++ b/.github/workflows/e2e-subtensor-tests.yml @@ -73,7 +73,7 @@ jobs: os: - ubuntu-latest test-file: ${{ fromJson(needs.find-tests.outputs.test-files) }} - # python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] steps: - name: Check-out repository uses: actions/checkout@v4 diff --git a/tests/e2e_tests/conftest.py b/tests/e2e_tests/conftest.py index e3625683f..bf993325c 100644 --- a/tests/e2e_tests/conftest.py +++ b/tests/e2e_tests/conftest.py @@ -1,3 +1,4 @@ +import asyncio import logging import os import re @@ -142,7 +143,7 @@ def try_start_docker(): return False container_name = f"test_local_chain_{str(time.time()).replace('.', '_')}" - image_name = "ghcr.io/opentensor/subtensor-localnet:latest" + image_name = "ghcr.io/opentensor/subtensor-localnet:devnet-ready" # Command to start container cmds = [ @@ -184,16 +185,15 @@ def try_start_docker(): ) if not result.stdout.strip(): raise RuntimeError("Docker container failed to start.") - substrate = AsyncSubstrateInterface(url="ws://127.0.0.1:9944") yield substrate finally: try: if substrate: - substrate.close() + asyncio.run(substrate.close()) except Exception: - pass + logging.warning("Failed to close substrate connection.") try: subprocess.run(["docker", "kill", container_name])