diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 57ed758af..070e9e79a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -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 diff --git a/.github/workflows/testing-install.yaml b/.github/workflows/testing-install.yaml index 1afb21b22..a367d6926 100644 --- a/.github/workflows/testing-install.yaml +++ b/.github/workflows/testing-install.yaml @@ -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: @@ -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 @@ -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__)"