Created
February 18, 2020 01:08
-
-
Save elliottmurray/5f6f9e95d813dfc84a84c656bfa2f19a to your computer and use it in GitHub Desktop.
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.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