Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

vdb-tests.yml 2.1KB

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