Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4

Expand All @@ -63,7 +63,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-asyncio pytest-cov pydantic fastapi jsonschema httpx psutil transformers requests
pip install pytest anyio pytest-cov pydantic fastapi jsonschema httpx psutil transformers requests

- name: Run unit tests (no MLX required)
run: |
Expand Down Expand Up @@ -98,19 +98,21 @@ jobs:

test-apple-silicon:
runs-on: macos-14
strategy:
matrix:
python-version: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v4

- name: Set up Python
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: ${{ matrix.python-version }}

- name: Install project and dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[vision]"
pip install pytest pytest-asyncio
pip install -e ".[dev,vision]"

- name: Verify Apple Silicon
run: |
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ dependencies = [
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"pytest-asyncio>=0.21.0",
"anyio>=4.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.0.0",
Expand Down Expand Up @@ -135,4 +135,3 @@ ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
asyncio_mode = "auto"
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def server_url(request):
return request.config.getoption("--server-url")


@pytest.fixture(params=["asyncio"])
def anyio_backend(request):
"""Run anyio-marked tests on asyncio only (trio is not installed)."""
return request.param
@pytest.fixture(scope="session")
def anyio_backend():
"""Run anyio-marked tests on asyncio only."""
return "asyncio"
Loading