Skip to content

Commit

Permalink
Add Python 3.10, 3.11 and 3.12 in CI (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk authored Jun 13, 2024
1 parent 479f7e7 commit 6624105
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
python-version: ['3.9']
python-version: ['3.9', '3.10', '3.11', '3.12']
env:
OS: ${{ matrix.os }}
PYTHON: '3.9'
timeout-minutes: 20
steps:
- uses: actions/checkout@master
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
- name: Install Minimal Dependencies
run: |
pip install -q -e .
- name: Run import tests
run: |
python -c "import agentscope; print(agentscope.__version__)"
- name: Install Full Dependencies
run: |
pip install -q -e .[full]
pip install coverage
Expand Down
2 changes: 2 additions & 0 deletions src/agentscope/service/service_toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def _get_type_str(cls: Any) -> Optional[Union[str, list]]:
type_str = "array"
elif cls is None.__class__:
type_str = "null"
elif cls is Any:
type_str = "Any"
else:
type_str = cls.__name__

Expand Down
1 change: 1 addition & 0 deletions tests/service_toolkit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def setUp(self) -> None:
"type": "object",
"properties": {
"query": {
"type": "Any",
"description": "A message to be retrieved.",
},
},
Expand Down

0 comments on commit 6624105

Please sign in to comment.