Skip to content

[Testing] Create a new project for each test run #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jun 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/actions/build-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,12 @@ inputs:
runs:
using: 'composite'
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Setup Poetry
uses: ./.github/actions/setup-poetry
with:
include_grpc: 'true'
include_dev: 'true'

python_version: ${{ inputs.python-version }}
- name: Build html documentation
shell: bash
run: |
Expand Down
21 changes: 10 additions & 11 deletions .github/actions/cleanup-all/action.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
name: 'Cleanup All'
description: 'Delete all indexes and collections associated with API key'
description: 'Delete all resources created by tests'

inputs:
PINECONE_API_KEY:
description: 'The Pinecone API key'
required: true
DELETE_ALL:
description: 'Delete all indexes and collections'
required: false
default: 'false'
PINECONE_ADDITIONAL_HEADERS:
description: 'Additional headers to send with the request'
required: false
default: '{"sdk-test-suite": "pinecone-python-client"}'
PINECONE_SERVICE_ACCOUNT_CLIENT_ID:
description: 'The Pinecone service account client ID'
required: true
PINECONE_SERVICE_ACCOUNT_CLIENT_SECRET:
description: 'The Pinecone service account client secret'
required: true

runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Setup Poetry
uses: ./.github/actions/setup-poetry
- name: Cleanup all
shell: bash
run: poetry run python3 scripts/cleanup-all.py
run: poetry run python3 ./github/actions/cleanup-all/cleanup-test-projects.py
env:
PINECONE_API_KEY: ${{ inputs.PINECONE_API_KEY }}
DELETE_ALL: ${{ inputs.DELETE_ALL }}
PINECONE_ADDITIONAL_HEADERS: ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
PINECONE_SERVICE_ACCOUNT_CLIENT_ID: ${{ inputs.PINECONE_SERVICE_ACCOUNT_CLIENT_ID }}
PINECONE_SERVICE_ACCOUNT_CLIENT_SECRET: ${{ inputs.PINECONE_SERVICE_ACCOUNT_CLIENT_SECRET }}
Loading