mirror of
https://github.com/lancedb/lancedb.git
synced 2025-12-25 22:29:58 +00:00
32 lines
1017 B
YAML
32 lines
1017 B
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/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" -x -v --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" -x -v --durations=30 python/python/tests
|