config.yml 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: 2.1
  2. jobs:
  3. build-and-test:
  4. docker:
  5. - image: circleci/python:3.8.1
  6. steps:
  7. - checkout
  8. - restore_cache:
  9. keys:
  10. - v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
  11. - run: pip install -r requirements.txt
  12. - run: pip install -r requirements-dev.txt
  13. - save_cache:
  14. key: v1-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
  15. paths:
  16. - '~/.cache/pip'
  17. - run:
  18. command: pip install -e .
  19. name: setup
  20. - run:
  21. command: pytest ./tests
  22. name: tests
  23. - run:
  24. command: python tests/benchmark_throughput.py --preset minimalistic
  25. name: benchmark_throughput
  26. - run:
  27. command: python tests/benchmark_dht.py
  28. name: benchmark_dht
  29. - run:
  30. command: codecov
  31. name: codecov
  32. workflows:
  33. main:
  34. jobs:
  35. - build-and-test