config.yml 1005 B

1234567891011121314151617181920212223242526272829303132333435363738
  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
  13. # note: uninstall is required because otherwise circleci cache will lose track of pytest/codecov executables
  14. - run: pip install pytest pytest-forked pytest-asyncio codecov tqdm scikit-learn
  15. - python/install-deps
  16. - python/save-cache
  17. - run:
  18. command: pip install --force-reinstall -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