Skip to content
Closed
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
26 changes: 13 additions & 13 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,22 @@ concurrency:
cancel-in-progress: true

jobs:
linting:
uses: './.github/workflows/lint.yaml'
# linting:
# uses: './.github/workflows/lint.yaml'

unit-tests:
uses: './.github/workflows/testing-unit.yaml'
secrets: inherit
# unit-tests:
# uses: './.github/workflows/testing-unit.yaml'
# secrets: inherit

integration-tests:
uses: './.github/workflows/testing-integration.yaml'
secrets: inherit
needs: unit-tests
# integration-tests:
# uses: './.github/workflows/testing-integration.yaml'
# secrets: inherit
# needs: unit-tests

dependency-tests:
uses: './.github/workflows/testing-dependency.yaml'
secrets: inherit
needs: unit-tests
# dependency-tests:
# uses: './.github/workflows/testing-dependency.yaml'
# secrets: inherit
# needs: unit-tests

package:
name: Check packaging
Expand Down
51 changes: 46 additions & 5 deletions .github/workflows/testing-install.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Installation Tests

on:
workflow_call:
workflow_dispatch:
pull_request:

permissions:
contents: read
pull-requests: write

jobs:
test-install:
runs-on: ${{ matrix.os }}
test-install-linux:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python: [3.9]

steps:
Expand All @@ -32,8 +32,8 @@ jobs:
run: python -m build --sdist --wheel

- name: Install from built artifacts
shell: bash
run: |
# Use the wheel if it's pure-python; fallback to sdist otherwise
pip install dist/*.whl || pip install dist/*.tar.gz

- name: Verify import & version
Expand All @@ -42,3 +42,44 @@ jobs:
import pinecone
print("Imported OK, version:", pinecone.__version__)
EOF

test-install-windows:
runs-on: windows-latest
strategy:
matrix:
python: [3.9]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install build tools
run: |
python -m pip install --upgrade pip setuptools wheel build

- name: Build sdist & wheel
run: python -m build --sdist --wheel

- name: Install from built artifacts
shell: pwsh
run: |
$wheels = Get-ChildItem -Path "dist" -Filter "*.whl"
$sdists = Get-ChildItem -Path "dist" -Filter "*.tar.gz"
if ($wheels) {
pip install $wheels[0].FullName
}
elseif ($sdists) {
pip install $sdists[0].FullName
}
else {
throw "No wheel or sdist found in dist/"
}

- name: Verify import & version
shell: pwsh
run: |
python -c "import pinecone; print('Imported OK, version:', pinecone.__version__)"
Loading