name: CLI Python wheels on: pull_request: paths: - ci/cli_wheel/** - ci/build_cli_wheels.py - ci/package_cli.py - .github/workflows/cli-wheels.yml workflow_dispatch: inputs: tag: description: Published CLI release to package required: true default: v0.42.0-beta.30 permissions: contents: read env: CLI_TAG: ${{ inputs.tag || 'v0.42.0-beta.30' }} jobs: build: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v6 with: persist-credentials: false - uses: actions/setup-python@v6 with: python-version: '3.13' - run: python -m pip install wheel==0.48.0 - name: Build wheels from published release archives env: GH_TOKEN: ${{ github.token }} run: | gh release download --repo lancedb/lancedb --dir archives \ --pattern 'lancedb-*.tar.gz' --pattern SHA256SUMS -- "$CLI_TAG" python -m ci.build_cli_wheels "$CLI_TAG" archives wheels - uses: actions/upload-artifact@v7 with: name: lancedb-tools-wheels path: wheels/*.whl if-no-files-found: error compression-level: 0 install: needs: build strategy: fail-fast: false matrix: os: [macos-15, ubuntu-24.04, ubuntu-24.04-arm] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v6 with: persist-credentials: false - uses: actions/setup-python@v6 with: python-version: '3.13' - uses: actions/download-artifact@v8 with: name: lancedb-tools-wheels path: wheels - run: python -m pip install uv==0.13.9 pipx==1.19.0 - name: Install and exercise the native CLI with uvx and pipx run: bash ci/cli_wheel/test_install.sh "$CLI_TAG" "$PWD/wheels"