config.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Python CircleCI 2.0 configuration file
  2. #
  3. # Check https://circleci.com/docs/2.0/language-python/ for more details
  4. #
  5. version: 2
  6. jobs:
  7. build:
  8. docker:
  9. # specify the version you desire here
  10. # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
  11. # - image: circleci/python:3.6.1
  12. - image: gethue/hue-cci:1.0.0
  13. # Specify service dependencies here if necessary
  14. # CircleCI maintains a library of pre-built images
  15. # documented at https://circleci.com/docs/2.0/circleci-images/
  16. # - image: circleci/postgres:9.4
  17. working_directory: ~/repo
  18. steps:
  19. - checkout
  20. # Download and cache dependencies
  21. - restore_cache:
  22. keys:
  23. - v1-dependencies-{{ checksum "requirements.txt" }}
  24. # fallback to using the latest cache if no exact match is found
  25. - v1-dependencies-
  26. - run:
  27. name: install dependencies
  28. command: |
  29. python3 -m venv venv
  30. . venv/bin/activate
  31. pip install -r requirements.txt
  32. - save_cache:
  33. paths:
  34. - ./venv
  35. key: v1-dependencies-{{ checksum "requirements.txt" }}
  36. # run tests!
  37. # this example uses Django's built-in test-runner
  38. # other common Python testing frameworks include pytest and nose
  39. # https://pytest.org
  40. # https://nose.readthedocs.io
  41. - run:
  42. name: run tests
  43. command: |
  44. . venv/bin/activate
  45. #python manage.py test
  46. - store_artifacts:
  47. path: test-reports
  48. destination: test-reports