|
|
@@ -43,8 +43,9 @@ jobs:
|
|
|
cache: pip
|
|
|
- name: Install lambdagent (src-layout) + agentpaas
|
|
|
run: |
|
|
|
- pip install -e lambdagent/ 2>/dev/null || pip install pyyaml fastapi uvicorn pytest
|
|
|
- pip install pytest pytest-asyncio pyyaml
|
|
|
+ pip install -e lambdagent/
|
|
|
+ pip install -e . # agentpaas + 它的 fastapi/uvicorn/pydantic 等依赖
|
|
|
+ pip install pytest pytest-asyncio
|
|
|
- name: Run tests
|
|
|
run: python -m pytest tests/ -v --tb=short
|
|
|
- name: Lint module loads
|
|
|
@@ -62,8 +63,10 @@ jobs:
|
|
|
with:
|
|
|
python-version: "3.12"
|
|
|
cache: pip
|
|
|
- - run: |
|
|
|
- pip install -e lambdagent/ 2>/dev/null || pip install pyyaml fastapi uvicorn
|
|
|
+ - name: Install both packages
|
|
|
+ run: |
|
|
|
+ pip install -e lambdagent/
|
|
|
+ pip install -e . # agentpaas needs fastapi/uvicorn/pydantic
|
|
|
- name: Verify package surface
|
|
|
run: |
|
|
|
python -c "import lambdagent; print(f'lambdagent OK: {len(lambdagent.__all__)} exports')"
|