mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-22 21:09:58 +00:00
Set the lance-format fury repo for most places that are downloading. For uploading, it is kept unchanged since lancedb is published to lancedb fury.
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
name: run-tests
|
|
|
|
description: "Install lance wheel and run unit tests"
|
|
inputs:
|
|
python-minor-version:
|
|
required: true
|
|
description: "8 9 10 11 12"
|
|
integration:
|
|
required: false
|
|
description: "Run integration tests"
|
|
default: "false"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Install lancedb
|
|
shell: bash
|
|
run: |
|
|
pip3 install --extra-index-url https://pypi.fury.io/lance-format/ --extra-index-url https://pypi.fury.io/lancedb/ $(ls target/wheels/lancedb-*.whl)[tests,dev]
|
|
- name: Setup localstack for integration tests
|
|
if: ${{ inputs.integration == 'true' }}
|
|
shell: bash
|
|
working-directory: .
|
|
run: docker compose up --detach --wait
|
|
- name: pytest (with integration)
|
|
shell: bash
|
|
if: ${{ inputs.integration == 'true' }}
|
|
run: pytest -m "not slow" -vv --durations=30 python/python/tests
|
|
- name: pytest (no integration tests)
|
|
shell: bash
|
|
if: ${{ inputs.integration != 'true' }}
|
|
run: pytest -m "not slow and not s3_test" -vv --durations=30 python/python/tests
|