Skip to content

Commit 1e9cc6b

Browse files
Bingxi ZhaoBingxi Zhao
authored andcommitted
fix: KB init & migrate, code structure
1 parent 93b5018 commit 1e9cc6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+323
-278
lines changed

.github/workflows/linting.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Checkout code
23-
uses: actions/checkout@v6
23+
uses: actions/checkout@v4
2424

2525
- name: Set up Python
2626
uses: actions/setup-python@v5
@@ -72,7 +72,7 @@ jobs:
7272

7373
steps:
7474
- name: Checkout code
75-
uses: actions/checkout@v6
75+
uses: actions/checkout@v4
7676

7777
- name: Set up Node.js
7878
uses: actions/setup-node@v4

.github/workflows/tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
strategy:
3232
fail-fast: false
3333
matrix:
34-
python-version: ["3.10", "3.11"]
34+
python-version: ["3.10", "3.11", "3.12"]
3535

3636
steps:
3737
- name: Checkout code
38-
uses: actions/checkout@v6
38+
uses: actions/checkout@v4
3939

4040
- name: Set up Python ${{ matrix.python-version }}
4141
uses: actions/setup-python@v5
@@ -78,6 +78,8 @@ jobs:
7878
python -c "from src.services.config.loader import load_config_with_main; print('✅ Config loader imports OK')"
7979
python -c "from src.services.config.unified_config import UnifiedConfigManager; print('✅ Unified config imports OK')"
8080
python -c "from src.logging import get_logger; print('✅ Logging imports OK')"
81+
python -c "from src.services.prompt import get_prompt_manager; print('✅ Prompt service imports OK')"
82+
python -c "from src.services.search import web_search; print('✅ Search service imports OK')"
8183
env:
8284
PYTHONPATH: ${{ github.workspace }}
8385

@@ -91,11 +93,11 @@ jobs:
9193
strategy:
9294
fail-fast: false
9395
matrix:
94-
python-version: ["3.10", "3.11"]
96+
python-version: ["3.10", "3.11", "3.12"]
9597

9698
steps:
9799
- name: Checkout code
98-
uses: actions/checkout@v6
100+
uses: actions/checkout@v4
99101

100102
- name: Set up Python ${{ matrix.python-version }}
101103
uses: actions/setup-python@v5
@@ -155,6 +157,7 @@ jobs:
155157
echo "|----------------|--------------|------------|" >> $GITHUB_STEP_SUMMARY
156158
echo "| 3.10 | ${{ needs.import-check.result == 'success' && '✅' || '❌' }} | ${{ needs.unit-tests.result == 'success' && '✅' || '❌' }} |" >> $GITHUB_STEP_SUMMARY
157159
echo "| 3.11 | ${{ needs.import-check.result == 'success' && '✅' || '❌' }} | ${{ needs.unit-tests.result == 'success' && '✅' || '❌' }} |" >> $GITHUB_STEP_SUMMARY
160+
echo "| 3.12 | ${{ needs.import-check.result == 'success' && '✅' || '❌' }} | ${{ needs.unit-tests.result == 'success' && '✅' || '❌' }} |" >> $GITHUB_STEP_SUMMARY
158161
159162
- name: Fail if tests failed
160163
if: needs.import-check.result == 'failure' || needs.unit-tests.result == 'failure'

assets/releases/ver0-5-1.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ Refactored the logging system for better management:
2929
---
3030

3131
**Full Changelog**: https://github.com/HKUDS/DeepTutor/compare/v0.5.0...v0.5.1
32-

scripts/check_install.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,4 +458,3 @@ def main():
458458

459459
traceback.print_exc()
460460
sys.exit(1)
461-

0 commit comments

Comments
 (0)