Phase 5: Cloud Integration Testing (#139 follow-up) #218
Workflow file for this run
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: Integration test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - "**" | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| java: ['8', '11', '17'] | |
| name: Unit tests (JDK ${{ matrix.java }}) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Run unit tests | |
| run: mvn --batch-mode test | |
| env: | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }} | |
| HF_API_KEY: ${{ secrets.HF_API_KEY }} | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| chroma-version: ['1.0.0', '1.3.7', '1.5.5'] | |
| java: ['8'] | |
| include: | |
| - java: '11' | |
| chroma-version: '1.5.5' | |
| - java: '17' | |
| chroma-version: '1.5.5' | |
| name: Integration tests (JDK ${{ matrix.java }}, Chroma ${{ matrix.chroma-version }}) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Run integration tests | |
| run: mvn --batch-mode -Pintegration test | |
| env: | |
| CHROMA_VERSION: ${{ matrix.chroma-version }} | |
| v2-integration-test: | |
| runs-on: ubuntu-latest | |
| name: Cloud parity tests | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Run v2 integration tests | |
| run: mvn --batch-mode test -Pintegration | |
| env: | |
| CHROMA_VERSION: '1.5.5' | |
| CHROMA_API_KEY: ${{ secrets.CHROMA_API_KEY }} | |
| CHROMA_TENANT: ${{ secrets.CHROMA_TENANT }} | |
| CHROMA_DATABASE: ${{ secrets.CHROMA_DATABASE }} |