12345678910111213141516171819202122232425262728293031323334353637 |
- version: 2.1
- jobs:
- build-and-test:
- docker:
- - image: circleci/python:3.8.1
- steps:
- - checkout
- - restore_cache:
- keys:
- - v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- - run: pip install -r requirements.txt
- - run: pip install -r requirements-dev.txt
- - save_cache:
- key: v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
- paths:
- - '~/.cache/pip'
- - run:
- command: pip install -e .
- name: setup
- - run:
- command: pytest ./tests
- 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
|