Files
qdrant/.github/workflows/integration-tests.yml
Arnaud Gourlay e3c6bb8a53 update tonic 0.8 & prost 0.11 (#1285)
* update tonic 0.8 & prost 0.11

* install protoc via package manager
2022-12-19 15:30:33 +01:00

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