mirror of
https://github.com/qdrant/qdrant-client.git
synced 2026-07-30 14:41:03 -05:00
* Enable testing on windows and macos * Add platform to the name * Add Docker on MacOS * Temporarily disable tests on Windows * Explicitly set ports to be opened * Add problematic case for MacOS * Increase the timeout in tests
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
name: Integration tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
|
|
strategy:
|
|
matrix:
|
|
python-version:
|
|
- '3.7.x'
|
|
- '3.8.x'
|
|
- '3.9.x'
|
|
- '3.10.x'
|
|
- '3.11.x'
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
name: Python ${{ matrix.python-version }} on ${{ matrix.os }} test
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install poetry
|
|
poetry config virtualenvs.create false
|
|
poetry install --no-interaction --no-ansi
|
|
- name: Setup docker (missing on MacOS)
|
|
if: runner.os == 'macos'
|
|
run: |
|
|
brew install docker
|
|
colima start
|
|
|
|
# For testcontainers to find the Colima socket
|
|
# https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#cannot-connect-to-the-docker-daemon-at-unixvarrundockersock-is-the-docker-daemon-running
|
|
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
|
|
- name: Run integration tests
|
|
run: |
|
|
./tests/integration-tests.sh
|
|
shell: bash
|
|
- name: Backward compatibility integration tests
|
|
run: |
|
|
QDRANT_VERSION='v1.2.2' ./tests/integration-tests.sh
|
|
shell: bash
|
|
- name: Check conversion coverage
|
|
run: |
|
|
./tests/coverage-test.sh
|
|
shell: bash
|