Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

vdb-tests.yml 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. name: Run VDB Tests
  2. on:
  3. pull_request:
  4. branches:
  5. - main
  6. paths:
  7. - api/core/rag/datasource/**
  8. - docker/**
  9. - .github/workflows/vdb-tests.yml
  10. - api/uv.lock
  11. - api/pyproject.toml
  12. concurrency:
  13. group: vdb-tests-${{ github.head_ref || github.run_id }}
  14. cancel-in-progress: true
  15. jobs:
  16. test:
  17. name: VDB Tests
  18. runs-on: ubuntu-latest
  19. strategy:
  20. matrix:
  21. python-version:
  22. - "3.11"
  23. - "3.12"
  24. steps:
  25. - name: Checkout code
  26. uses: actions/checkout@v4
  27. with:
  28. persist-credentials: false
  29. - name: Free Disk Space
  30. uses: endersonmenezes/free-disk-space@v2
  31. with:
  32. remove_dotnet: true
  33. remove_haskell: true
  34. remove_tool_cache: true
  35. - name: Setup UV and Python
  36. uses: ./.github/actions/setup-uv
  37. with:
  38. python-version: ${{ matrix.python-version }}
  39. uv-lockfile: api/uv.lock
  40. - name: Check UV lockfile
  41. run: uv lock --project api --check
  42. - name: Install dependencies
  43. run: uv sync --project api --dev
  44. - name: Set up dotenvs
  45. run: |
  46. cp docker/.env.example docker/.env
  47. cp docker/middleware.env.example docker/middleware.env
  48. - name: Expose Service Ports
  49. run: sh .github/workflows/expose_service_ports.sh
  50. - name: Set up Vector Store (TiDB)
  51. uses: hoverkraft-tech/compose-action@v2.0.2
  52. with:
  53. compose-file: docker/tidb/docker-compose.yaml
  54. services: |
  55. tidb
  56. tiflash
  57. - name: Set up Vector Stores (Weaviate, Qdrant, PGVector, Milvus, PgVecto-RS, Chroma, MyScale, ElasticSearch, Couchbase, OceanBase)
  58. uses: hoverkraft-tech/compose-action@v2.0.2
  59. with:
  60. compose-file: |
  61. docker/docker-compose.yaml
  62. services: |
  63. weaviate
  64. qdrant
  65. couchbase-server
  66. etcd
  67. minio
  68. milvus-standalone
  69. pgvecto-rs
  70. pgvector
  71. chroma
  72. elasticsearch
  73. oceanbase
  74. - name: setup test config
  75. run: |
  76. echo $(pwd)
  77. ls -lah .
  78. cp api/tests/integration_tests/.env.example api/tests/integration_tests/.env
  79. - name: Check VDB Ready (TiDB)
  80. run: uv run --project api python api/tests/integration_tests/vdb/tidb_vector/check_tiflash_ready.py
  81. - name: Test Vector Stores
  82. run: uv run --project api bash dev/pytest/pytest_vdb.sh