Skip to content

Instantly share code, notes, and snippets.

@crawftv
Created October 2, 2019 17:04
Show Gist options
  • Save crawftv/bc68315f9577089ce955c08adda05925 to your computer and use it in GitHub Desktop.
Save crawftv/bc68315f9577089ce955c08adda05925 to your computer and use it in GitHub Desktop.
A basic config.yml that works for CircleCI
# Python CircleCI 2.0 configuration file
version: 2
orbs:
codecov: codecov/[email protected]
jobs:
build:
docker:
- image: circleci/python:3.6
working_directory: ~/repo
steps:
# Step 1: obtain repo from GitHub
- checkout
# Step 2: create virtual env and install dependencies
- run:
name: install dependencies
command: |
sudo pip install pipenv
pipenv --three
pipenv install
# Step 3: run linter and tests
- run:
name: run tests
command: |
pipenv run pytest -v --cov ./crawto
- run:
name: return codecoverage metric
command: |
pipenv run codecov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment