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
2 changes: 1 addition & 1 deletion .github/workflows/sdk-py-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
- uses: ./.github/actions/setup
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: mise run agentstack-sdk-py:e2e-test --python=${{ matrix.python }}
- run: mise run agentstack-sdk-py:test-all --python=${{ matrix.python }}
2 changes: 1 addition & 1 deletion apps/agentstack-sdk-py/src/agentstack_sdk/platform/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class User(pydantic.BaseModel):
id: str
role: Literal["admin", "developer", "user"]
email: pydantic.EmailStr
email: str
created_at: pydantic.AwareDatetime

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion apps/agentstack-sdk-py/tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ outputs = { auto = true }

# test

["agentstack-sdk-py:e2e-test"]
["agentstack-sdk-py:test-all"]
run = """
#!/bin/bash
uv run --python={{option(name="python", default="3.13")}} pytest
Expand Down
27 changes: 27 additions & 0 deletions apps/agentstack-sdk-py/tests/unit/test_import_all.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2025 © BeeAI a Series of LF Projects, LLC
# SPDX-License-Identifier: Apache-2.0

import importlib
import pkgutil

import pytest

import agentstack_sdk


@pytest.mark.unit
def test_import_all():
"""
Recursively import all packages from agentstack_sdk to ensure no syntax errors
or missing dependencies.
"""
package = agentstack_sdk
prefix = package.__name__ + "."

for _, name, _ in pkgutil.walk_packages(package.__path__, prefix):
try:
importlib.import_module(name)
print("imported", name)
except Exception:
print("failed to import", name)
raise