diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 525b476..39d3576 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.10"] + python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v3 @@ -23,7 +23,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install --upgrade pip pytest - pip install . + pip install --upgrade pip + pip install ".[dev]" - name: Test with Pytest run: pytest diff --git a/pyproject.toml b/pyproject.toml index 5ad70d6..ee6ecb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,4 +62,5 @@ plugins = ["pydantic.mypy"] [tool.pytest.ini_options] asyncio_mode = "auto" testpaths = ["tests"] +pythonpath = ["."] markers = ["integration: live network tests (require internet access)"] diff --git a/tests/test_tool_decorator.py b/tests/test_tool_decorator.py index 87ed6fc..0641d41 100644 --- a/tests/test_tool_decorator.py +++ b/tests/test_tool_decorator.py @@ -25,7 +25,7 @@ def _ctx() -> ToolContext: def _run(coro): - return asyncio.get_event_loop().run_until_complete(coro) + return asyncio.run(coro) # ---------------------------------------------------------------------------