Skip to content

Commit

Permalink
refactor: split tests into 3 runners
Browse files Browse the repository at this point in the history
  • Loading branch information
KevKibe committed May 14, 2024
1 parent aaf5fbf commit 4eb40b2
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: CoherePineconeIndexer Tests

on: [pull_request]

Expand All @@ -23,11 +23,7 @@ jobs:
- name: Test with pytest
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
run: |
pytest src/tests/openaiindex_test.py
pytest src/tests/googleindex_test.py
pytest src/tests/cohereindex_test.py
29 changes: 29 additions & 0 deletions .github/workflows/test_google_pinecone_indexer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: GooglePineconeIndexer Tests

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install -r requirements.txt --no-cache-dir
pip install pytest einops lion-pytorch
- name: Test with pytest
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
run: |
pytest src/tests/googleindex_test.py
29 changes: 29 additions & 0 deletions .github/workflows/test_openai_pinecone_indexer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: OpenaiPineconeIndexer Tests

on: [pull_request]

jobs:
test:
runs-on: ubuntu-latest

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

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install -r requirements.txt --no-cache-dir
pip install pytest einops lion-pytorch
- name: Test with pytest
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pytest src/tests/openaiindex_test.py

0 comments on commit 4eb40b2

Please sign in to comment.