mirror of
https://github.com/qdrant/qdrant.git
synced 2026-09-28 08:58:05 -05:00
74 lines
1.9 KiB
YAML
74 lines
1.9 KiB
YAML
name: Integration tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, dev ]
|
|
pull_request:
|
|
branches: [ master, dev ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install minimal stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
- uses: actions/checkout@v3
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Install dependencies
|
|
run: sudo apt-get install clang protobuf-compiler
|
|
- name: Build
|
|
run: cargo build --features service_debug
|
|
- name: Run integration tests
|
|
run: ./tests/integration-tests.sh
|
|
shell: bash
|
|
|
|
test-consensus:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Install minimal stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: stable
|
|
- uses: actions/checkout@v3
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Install dependencies
|
|
run: sudo apt-get install clang protobuf-compiler
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install pytest
|
|
run: pip install pytest requests
|
|
- name: Build
|
|
run: cargo build --features service_debug
|
|
- name: Run integration tests - 1 peer
|
|
run: ./tests/integration-tests.sh distributed
|
|
shell: bash
|
|
- name: Run integration tests - multiple peers - pytest
|
|
run: pytest ./tests/consensus_tests
|
|
|
|
test-consensus-compose:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install requests python lib
|
|
run: pip install requests
|
|
- name: Run integration tests - multiple peers - compose
|
|
run: ./test_restart.sh
|
|
working-directory: ./tests/consensus_tests
|