File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments