Created
June 17, 2019 19:01
-
-
Save andresaaap/96f4627592f52c3a0e90f1efbb14d274 to your computer and use it in GitHub Desktop.
Operationalize a Machine Learning Microservice, CircleCI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-python/ for more details | |
# | |
version: 2 | |
jobs: | |
build: | |
docker: | |
# Use the same Docker base as the project | |
- image: python:3.7.3-stretch | |
working_directory: ~/repo | |
steps: | |
- checkout | |
# Download and cache dependencies | |
- restore_cache: | |
keys: | |
- v1-dependencies-{{ checksum "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 | |
make install | |
# Install hadolint | |
wget -O /bin/hadolint https://github.com/hadolint/hadolint/releases/download/v1.16.3/hadolint-Linux-x86_64 &&\ | |
chmod +x /bin/hadolint | |
- save_cache: | |
paths: | |
- ./venv | |
key: v1-dependencies-{{ checksum "requirements.txt" }} | |
# run lint! | |
- run: | |
name: run lint | |
command: | | |
. venv/bin/activate | |
make lint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment