Skip to content

Commit 60dc2e4

Browse files
committed
Add workflow stub for installation testing
1 parent ad55e58 commit 60dc2e4

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Installation Tests
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
10+
jobs:
11+
test-install:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest]
16+
python: [3.9]
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Python ${{ matrix.python }}
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: ${{ matrix.python }}
26+
27+
- name: Install build tools
28+
run: |
29+
python -m pip install --upgrade pip setuptools wheel build
30+
31+
- name: Build sdist & wheel
32+
run: python -m build --sdist --wheel
33+
34+
- name: Install from built artifacts
35+
run: |
36+
# Use the wheel if it's pure-python; fallback to sdist otherwise
37+
pip install dist/*.whl || pip install dist/*.tar.gz
38+
39+
- name: Verify import & version
40+
run: |
41+
python - <<EOF
42+
import pinecone
43+
print("Imported OK, version:", pinecone.__version__)
44+
EOF

0 commit comments

Comments
 (0)