123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- version: 2.1
- orbs:
- python: circleci/python@0.2.1
- jobs:
- build-and-test:
- executor: python/default
- steps:
- - checkout
- - python/load-cache
- - run:
- command: |
- if [[ $(pip show grpcio | grep Version) != *1.31* ]]; then
- git clone https://github.com/grpc/grpc --recurse-submodules
- cd grpc
- sudo pip install -r requirements.txt
- export GRPC_PYTHON_BUILD_WITH_CYTHON=1
- sudo pip install .
- cd -
- fi
- name: compile-grpc # remove this command when v1.31 becomes available via pip install -r requirements.txt
- - run: sudo pip install codecov pytest grpcio-tools tqdm scikit-learn
- - python/install-deps
- - python/save-cache
- - run:
- command: sudo python setup.py develop
- name: setup
- - run:
- command: for test_file in tests/test*.py; do pytest $test_file --full-trace; done
- name: tests
- - run:
- command: python tests/benchmark_throughput.py --preset minimalistic
- name: benchmark_throughput
- - run:
- command: python tests/benchmark_dht.py
- name: benchmark_dht
- - run:
- command: codecov
- name: codecov
- workflows:
- main:
- jobs:
- - build-and-test
|