|
| 1 | +version: 2.1 |
| 2 | + |
| 3 | +jobs: |
| 4 | + test_gradient_model_py36: |
| 5 | + docker: |
| 6 | + - image: circleci/python:3.6.9 |
| 7 | + working_directory: ~/project/packages/gradient_boosting_model |
| 8 | + steps: |
| 9 | + - checkout: |
| 10 | + path: ~/project |
| 11 | + - run: |
| 12 | + name: Run tests with Python 3.6 |
| 13 | + command: | |
| 14 | + sudo pip install --upgrade pip |
| 15 | + pip install --user tox |
| 16 | + tox -e py36 |
| 17 | + test_gradient_model_py37: |
| 18 | + docker: |
| 19 | + - image: circleci/python:3.7.6 |
| 20 | + working_directory: ~/project/packages/gradient_boosting_model |
| 21 | + steps: |
| 22 | + - checkout: |
| 23 | + path: ~/project |
| 24 | + - run: |
| 25 | + name: Run tests with Python 3.7 |
| 26 | + command: | |
| 27 | + sudo pip install --upgrade pip |
| 28 | + pip install --user tox |
| 29 | + tox -e py37 |
| 30 | + test_gradient_model_py38: |
| 31 | + docker: |
| 32 | + - image: circleci/python:3.8.0 |
| 33 | + working_directory: ~/project/packages/gradient_boosting_model |
| 34 | + steps: |
| 35 | + - checkout: |
| 36 | + path: ~/project |
| 37 | + - run: |
| 38 | + name: Run tests with Python 3.8 |
| 39 | + command: | |
| 40 | + sudo pip install --upgrade pip |
| 41 | + pip install --user tox |
| 42 | + tox -e py38 |
| 43 | + test_ml_api_py36: |
| 44 | + docker: |
| 45 | + - image: circleci/python:3.6.9 |
| 46 | + - image: postgres |
| 47 | + environment: |
| 48 | + POSTGRES_USER: test_user |
| 49 | + POSTGRES_PASSWORD: password |
| 50 | + POSTGRES_DB: ml_api_test |
| 51 | + environment: |
| 52 | + DB_HOST: localhost |
| 53 | + DB_PORT: 5432 |
| 54 | + DB_USER: test_user |
| 55 | + DB_PASSWORD: password |
| 56 | + DB_NAME: ml_api_test |
| 57 | + SHADOW_MODE_ACTIVE: true |
| 58 | + working_directory: ~/project/packages/ml_api |
| 59 | + steps: |
| 60 | + - checkout: |
| 61 | + path: ~/project |
| 62 | + - run: |
| 63 | + name: Run API tests with Python 3.6 |
| 64 | + command: | |
| 65 | + sudo pip install --upgrade pip |
| 66 | + pip install --user tox |
| 67 | + tox -e py36 |
| 68 | + test_ml_api_py37: |
| 69 | + docker: |
| 70 | + - image: circleci/python:3.7.6 |
| 71 | + - image: postgres |
| 72 | + environment: |
| 73 | + POSTGRES_USER: test_user |
| 74 | + POSTGRES_PASSWORD: password |
| 75 | + POSTGRES_DB: ml_api_test |
| 76 | + environment: |
| 77 | + DB_HOST: localhost |
| 78 | + DB_PORT: 5432 |
| 79 | + DB_USER: test_user |
| 80 | + DB_PASSWORD: password |
| 81 | + DB_NAME: ml_api_test |
| 82 | + SHADOW_MODE_ACTIVE: true |
| 83 | + working_directory: ~/project/packages/ml_api |
| 84 | + steps: |
| 85 | + - checkout: |
| 86 | + path: ~/project |
| 87 | + - run: |
| 88 | + name: Run API tests with Python 3.7 |
| 89 | + command: | |
| 90 | + sudo pip install --upgrade pip |
| 91 | + pip install --user tox |
| 92 | + tox -e py37 |
| 93 | + test_ml_api_py38: |
| 94 | + docker: |
| 95 | + - image: circleci/python:3.8.1 |
| 96 | + - image: postgres |
| 97 | + environment: |
| 98 | + POSTGRES_USER: test_user |
| 99 | + POSTGRES_PASSWORD: password |
| 100 | + POSTGRES_DB: ml_api_test |
| 101 | + environment: |
| 102 | + DB_HOST: localhost |
| 103 | + DB_PORT: 5432 |
| 104 | + DB_USER: test_user |
| 105 | + DB_PASSWORD: password |
| 106 | + DB_NAME: ml_api_test |
| 107 | + SHADOW_MODE_ACTIVE: true |
| 108 | + working_directory: ~/project/packages/ml_api |
| 109 | + steps: |
| 110 | + - checkout: |
| 111 | + path: ~/project |
| 112 | + - run: |
| 113 | + name: Run API tests with Python 3.8 |
| 114 | + command: | |
| 115 | + sudo pip install --upgrade pip |
| 116 | + pip install --user tox |
| 117 | + tox -e py38 |
| 118 | +workflows: |
| 119 | + version: 2 |
| 120 | + test-all: |
| 121 | + jobs: |
| 122 | + - test_gradient_model_py36 |
| 123 | + - test_gradient_model_py37 |
| 124 | + - test_gradient_model_py38 |
| 125 | + - test_ml_api_py36 |
| 126 | + - test_ml_api_py37 |
| 127 | + - test_ml_api_py38 |
0 commit comments