Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
emrgnt-cmplxty committed Dec 13, 2024
1 parent cf5e3aa commit 6855b04
Show file tree
Hide file tree
Showing 11 changed files with 150 additions and 479 deletions.
53 changes: 0 additions & 53 deletions .github/actions/run-sdk-chunks-tests/action.yml

This file was deleted.

130 changes: 0 additions & 130 deletions .github/actions/run-sdk-documents-tests/action.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/r2r-full-integration-deep-dive-tests.yml

This file was deleted.

67 changes: 0 additions & 67 deletions .github/workflows/r2r-full-py-integration-tests-graphrag.yml

This file was deleted.

67 changes: 8 additions & 59 deletions .github/workflows/r2r-full-py-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,22 @@ on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: true

strategy:
matrix:
os: [ubuntu-latest]
test_category:
- cli-ingestion
- cli-retrieval
- sdk-ingestion
- sdk-retrieval
- sdk-auth
- sdk-collections
- sdk-prompts
integration-test: # or whatever name you want to give this job
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TELEMETRY_ENABLED: 'false'
R2R_PROJECT_NAME: r2r_default
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
AZURE_API_KEY: ${{ secrets.AZURE_API_KEY }}
AZURE_API_BASE: ${{ secrets.AZURE_API_BASE }}
AZURE_API_VERSION: ${{ secrets.AZURE_API_VERSION }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python and install dependencies
uses: ./.github/actions/setup-python-full
with:
os: ${{ matrix.os }}

- name: Setup and start Docker
uses: ./.github/actions/setup-docker
Expand All @@ -53,45 +41,6 @@ jobs:
- name: Start R2R Full server
uses: ./.github/actions/start-r2r-full

- name: Run CLI Ingestion Tests
if: matrix.test_category == 'cli-ingestion'
uses: ./.github/actions/run-cli-ingestion-tests

- name: Run CLI Retrieval Tests
if: matrix.test_category == 'cli-retrieval'
uses: ./.github/actions/run-cli-retrieval-tests

- name: Run SDK Ingestion Tests
if: matrix.test_category == 'sdk-ingestion'
uses: ./.github/actions/run-sdk-ingestion-tests

- name: Run SDK Retrieval Tests
if: matrix.test_category == 'sdk-retrieval'
uses: ./.github/actions/run-sdk-retrieval-tests

- name: Run SDK Auth Tests
if: matrix.test_category == 'sdk-auth'
uses: ./.github/actions/run-sdk-auth-tests

- name: Run SDK Collections Tests
if: matrix.test_category == 'sdk-collections'
uses: ./.github/actions/run-sdk-collections-tests

- name: Run SDK Prompt Tests
if: matrix.test_category == 'sdk-prompts'
uses: ./.github/actions/run-sdk-prompt-management-tests

- name: Print Docker logs on failure
if: >
(matrix.test_category == 'cli-ingestion' && failure()) ||
(matrix.test_category == 'sdk-ingestion' && failure()) ||
(matrix.test_category == 'cli-retrieval' && failure()) ||
(matrix.test_category == 'sdk-retrieval' && failure()) ||
(matrix.test_category == 'sdk-auth' && failure()) ||
(matrix.test_category == 'sdk-collections' && failure()) ||
(matrix.test_category == 'sdk-prompts' && failure())
- name: Run R2R Full Python Integration Test
run: |
echo "::group::Docker Logs"
docker ps -a
docker logs r2r-full-r2r-1
echo "::endgroup::"
python -m pytest
Loading

0 comments on commit 6855b04

Please sign in to comment.