Skip to content

Commit

Permalink
refactor: move tests to one file
Browse files Browse the repository at this point in the history
  • Loading branch information
KevKibe committed May 14, 2024
1 parent 4eb40b2 commit 71bf011
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 61 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/test_google_pinecone_indexer.yaml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/test_openai_pinecone_indexer.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,30 @@ jobs:
pip install -r requirements.txt --no-cache-dir
pip install pytest einops lion-pytorch
- name: Test with pytest
- name: Test CoherePineconeIndexer
id: cohere_test
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
run: |
pytest src/tests/cohereindex_test.py
- name: Test OpenaiPineconeIndexer
id: openai_test
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pytest src/tests/openaiindex_test.py
- name: Test GooglePineconeIndexer
id: google_test
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
run: |
pytest src/tests/googleindex_test.py

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ cd src

```bash
# Using OpenAI
python -m _openai.create_index --pinecone_api_key "your_pinecone_api_key" --index_name "your_index_name" -
python -m utils.create_index --pinecone_api_key "your_pinecone_api_key" --index_name "your_index_name"

```

Expand All @@ -164,7 +164,7 @@ python -m _cohere.index_documents --pinecone_api_key "your_pinecone_api_key" -

```bash
# Using OpenAI
python -m _openai.delete_index --pinecone_api_key "your_pinecone_api_key" --index_name "your_index_name"
python -m utils.delete_index --pinecone_api_key "your_pinecone_api_key" --index_name "your_index_name"

```

Expand Down

0 comments on commit 71bf011

Please sign in to comment.