Created
October 2, 2019 17:04
-
-
Save crawftv/bc68315f9577089ce955c08adda05925 to your computer and use it in GitHub Desktop.
A basic config.yml that works for 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 | |
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