config.yml 833 B

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