config.yml 882 B

12345678910111213141516171819202122232425262728293031323334353637
  1. version: 2.1
  2. orbs:
  3. python: circleci/python@0.2.1
  4. jobs:
  5. build-and-test:
  6. executor: python/default
  7. docker:
  8. - image: circleci/python:3.8.1
  9. steps:
  10. - checkout
  11. - python/load-cache
  12. - run: pip uninstall -y pytest codecov # temporary override for broken cache
  13. - run: pip install codecov pytest tqdm scikit-learn
  14. - python/install-deps
  15. - python/save-cache
  16. - run:
  17. command: pip install -e .
  18. name: setup
  19. - run:
  20. command: pytest ./tests
  21. name: tests
  22. - run:
  23. command: python tests/benchmark_throughput.py --preset minimalistic
  24. name: benchmark_throughput
  25. - run:
  26. command: python tests/benchmark_dht.py
  27. name: benchmark_dht
  28. - run:
  29. command: codecov
  30. name: codecov
  31. workflows:
  32. main:
  33. jobs:
  34. - build-and-test