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

vdb-tests.yml 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. fetch-depth: 0
  29. persist-credentials: false
  30. - name: Setup UV and Python
  31. uses: ./.github/actions/setup-uv
  32. with:
  33. python-version: ${{ matrix.python-version }}
  34. uv-lockfile: api/uv.lock
  35. - name: Check UV lockfile
  36. run: uv lock --project api --check
  37. - name: Install dependencies
  38. run: uv sync --project api --group dev
  39. - name: Set up dotenvs
  40. run: |
  41. cp docker/.env.example docker/.env
  42. cp docker/middleware.env.example docker/middleware.env
  43. - name: Expose Service Ports
  44. run: sh .github/workflows/expose_service_ports.sh
  45. - name: Set up Vector Store (TiDB)
  46. uses: hoverkraft-tech/compose-action@v2.0.2
  47. with:
  48. compose-file: docker/tidb/docker-compose.yaml
  49. services: |
  50. tidb
  51. tiflash
  52. - name: Set up Vector Stores (Weaviate, Qdrant, PGVector, Milvus, PgVecto-RS, Chroma, MyScale, ElasticSearch, Couchbase)
  53. uses: hoverkraft-tech/compose-action@v2.0.2
  54. with:
  55. compose-file: |
  56. docker/docker-compose.yaml
  57. services: |
  58. weaviate
  59. qdrant
  60. couchbase-server
  61. etcd
  62. minio
  63. milvus-standalone
  64. pgvecto-rs
  65. pgvector
  66. chroma
  67. elasticsearch
  68. - name: Check TiDB Ready
  69. run: uv run --project api python api/tests/integration_tests/vdb/tidb_vector/check_tiflash_ready.py
  70. - name: Test Vector Stores
  71. run: uv run --project api bash dev/pytest/pytest_vdb.sh