# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/python:3.7.3@sha256:44b1339fa4110af1ea53fd29ce755817b369058a04e187a62bb159ed9dcd245d
    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-

      - run:
          name: install dependencies
          command: |
            python3 -m venv venv
            . venv/bin/activate
            python setup.py dev_persistent_pip_sync

      - save_cache:
          paths:
            - ./venv
          key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}

      - run:
          name: run tests
          command: |
            . venv/bin/activate
            flake8 bamboo_crawler tests
            export AWS_ACCESS_KEY_ID=''
            export AWS_SECRET_ACCESS_KEY=''
            python setup.py test

      - store_artifacts:
          path: test-reports
          destination: test-reports

# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/python:3.7.3@sha256:ddc07e5133e1063c9222909a8f3b6376bb1d29eebc9d7366074eebeb3267b4b1
    working_directory: ~/repo

    steps:
      - checkout

      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-

      - run:
          name: install dependencies
          command: |
            python3 -m venv venv
            . venv/bin/activate
            python setup.py dev_persistent_pip_sync

      - save_cache:
          paths:
            - ./venv
          key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "dev-requirements.txt" }}

      - run:
          name: run tests
          command: |
            . venv/bin/activate
            flake8 bamboo_crawler tests
            export AWS_ACCESS_KEY_ID=''
            export AWS_SECRET_ACCESS_KEY=''
            python setup.py test

      - store_artifacts:
          path: test-reports
          destination: test-reports

Update circleci/python:3.7.3 Docker digest to ddc07e5
Update circleci/python:3.7.3 Docker digest to ddc07e5
