Skip to content

Commit

Permalink
Rename Pinecone-specific test scripts
Browse files Browse the repository at this point in the history
Qualify with Pinecone if they are not generic to other vector databases.
  • Loading branch information
daverigby committed Apr 29, 2024
1 parent c0c2b98 commit d3daf2e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ inputs:
outputs:
index_name:
description: 'The name of the index, including randomized suffix'
value: ${{ steps.create-index.outputs.index_name }}
value: ${{ steps.create-pinecone-index.outputs.index_name }}
index_host:
description: 'The host of the index, including randomized suffix'
value: ${{ steps.create-index.outputs.index_host }}
value: ${{ steps.create-pinecone-index.outputs.index_host }}

runs:
using: 'composite'
steps:
- name: Create index
id: create-index
id: create-pinecone-index
shell: bash
run: poetry run python3 tests/scripts/create_index.py
run: poetry run python3 tests/scripts/create_pinecone_index.py
env:
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
NAME_PREFIX: ${{ inputs.name_prefix }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
steps:
- name: Delete index
shell: bash
run: poetry run python3 tests/scripts/delete_index.py
run: poetry run python3 tests/scripts/delete_pinecone_index.py
env:
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
INDEX_NAME: ${{ inputs.index_name }}
14 changes: 7 additions & 7 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
poetry run flake8 . --extend-exclude .venv --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
poetry run flake8 . --extend-exclude .venv --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Create test index
id: create-index
uses: ./.github/actions/create-index
- name: Create test Pinecone index
id: create-pinecone-index
uses: ./.github/actions/create-pinecone-index
timeout-minutes: 2
with:
environment: ${{ matrix.environment == 'pod' && 'us-east4-gcp' || '' }}
Expand All @@ -60,12 +60,12 @@ jobs:
poetry run pytest
env:
PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
INDEX_NAME: ${{ steps.create-index.outputs.index_name }}
- name: Delete test index
INDEX_NAME: ${{ steps.create-pinecone-index.outputs.index_name }}
- name: Delete test Pinecone index
if: always()
uses: ./.github/actions/delete-index
uses: ./.github/actions/delete-pinecone-index
timeout-minutes: 2
with:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
index_name: ${{ steps.create-index.outputs.index_name }}
index_name: ${{ steps.create-pinecone-index.outputs.index_name }}

File renamed without changes.
File renamed without changes.

0 comments on commit d3daf2e

Please sign in to comment.