Skip to content

Instantly share code, notes, and snippets.

@elliottmurray
Created February 18, 2020 01:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elliottmurray/5f6f9e95d813dfc84a84c656bfa2f19a to your computer and use it in GitHub Desktop.
Save elliottmurray/5f6f9e95d813dfc84a84c656bfa2f19a to your computer and use it in GitHub Desktop.
# Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2.1
jobs:
build:
docker:
- image: circleci/python:3.7
working_directory: ~/repo
steps:
- checkout
- run:
name: run tests
command: |
python3 -m venv venv
. venv/bin/activate
pip install tox
tox
- store_artifacts:
path: htmlcov
deploy:
executor: aws-serverless/default
steps:
- checkout
- aws-serverless/install
- run:
name: deploy to AWS
command: |
bin/deploy
orbs:
aws-serverless: circleci/aws-serverless@1.0.1
workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
context: <your aws context>
requires:
- build
filters:
branches:
only: master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment