feat: add hybrid search client (#37) #146
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - image_tag: "4.3.5.3-103000092025080818" | |
| init_sql: "ALTER SYSTEM ob_vector_memory_limit_percentage = 30; CREATE USER 'jtuser'@'%'; GRANT SELECT, INSERT, UPDATE, DELETE ON test.* TO 'jtuser'@'%'; FLUSH PRIVILEGES;" | |
| test_filter: "-k \"not HybridSearchTest\"" | |
| - image_tag: "4.4.1.0-100000032025101610" | |
| init_sql: "ALTER SYSTEM ob_vector_memory_limit_percentage = 30; SET GLOBAL ob_query_timeout=100000000;" | |
| test_filter: "tests/test_hybrid_search.py::HybridSearchTest" | |
| steps: | |
| - name: Free disk space | |
| uses: kfir4444/free-disk-space@main | |
| with: | |
| tool-cache: false | |
| android: true | |
| dotnet: true | |
| haskell: true | |
| large-packages: true | |
| swap-storage: true | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.x' | |
| - name: Install Poetry | |
| run: | | |
| pip install poetry | |
| - name: Install dependencies | |
| run: | | |
| poetry install | |
| - name: Start OceanBase container | |
| uses: oceanbase/setup-oceanbase-ce@v1 | |
| with: | |
| image_name: 'oceanbase/oceanbase-ce' | |
| image_tag: ${{ matrix.image_tag }} | |
| container_name: 'observer' | |
| mode: 'mini' | |
| datafile_size: '20G' | |
| log_disk_size: '10G' | |
| init_sql: ${{ matrix.init_sql }} | |
| - name: Run tests | |
| run: | | |
| poetry run pytest --log-cli-level=INFO ${{ matrix.test_filter }} |