Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

ci: add post-publish verification for PyPI (#2931)

LearningCircuit5a7ca26489eb
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index ce5965ba14..f625855658 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -463,3 +463,67 @@ jobs:
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
with:
skip-existing: true # Don't fail if version already exists
+
+ # Verify the published package is installable (skipped for prereleases which go to Test PyPI)
+ verify-publish:
+ needs: publish
+ if: ${{ !(github.event_name == 'release' && github.event.release.prerelease == true) && !(github.event_name == 'repository_dispatch' && github.event.client_payload.prerelease == true) }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 15
+ permissions:
+ contents: read
+
+ steps:
+ - name: Harden the runner (Audit all outbound calls)
+ uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
+ with:
+ egress-policy: audit
+
+ - name: Determine published version
+ id: version
+ run: |
+ if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
+ TAG="${{ github.event.client_payload.tag }}"
+ else
+ TAG="${{ github.event.release.tag_name }}"
+ fi
+ # Strip leading 'v' if present
+ VERSION="${TAG#v}"
+ echo "version=$VERSION" >> "$GITHUB_OUTPUT"
+ echo "Published version: $VERSION"
+
+ - name: Install system dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libsqlcipher-dev
+
+ - name: Wait for PyPI index to update
+ run: |
+ echo "Waiting 60 seconds for PyPI index propagation..."
+ sleep 60
+
+ - name: Verify package installation
+ run: |
+ python3 -m venv /tmp/verify-env
+ . /tmp/verify-env/bin/activate
+
+ VERSION="${{ steps.version.outputs.version }}"
+ echo "Installing local-deep-research==${VERSION}..."
+
+ # Retry up to 5 times with increasing delay for PyPI propagation
+ for i in 1 2 3 4 5; do
+ if pip install "local-deep-research==${VERSION}" 2>&1; then
+ echo "Installation successful on attempt $i"
+ break
+ fi
+ if [ "$i" -lt 5 ]; then
+ echo "Attempt $i failed, waiting $((i * 30))s..."
+ sleep $((i * 30))
+ else
+ echo "::error::Failed to install local-deep-research==${VERSION} after 5 attempts"
+ exit 1
+ fi
+ done
+
+ # Verify import works
+ python3 -c "import local_deep_research; print(f'Successfully imported v{local_deep_research.__version__}')"