Skip to content

Commit

Permalink
updated circleci.yml
Browse files Browse the repository at this point in the history
pipenv should already be there, no need to reinstall; updated caching
  • Loading branch information
liadmagen committed Oct 4, 2018
1 parent 6a361da commit 7f8333c
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,24 @@ jobs:
# 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-
- cache-{{ checksum "Pipfile.lock" }}
- cache-

- run:
name: install dependencies
command: |
pip install pipenv
pipenv install
pipenv sync --dev
- save_cache:
key: cache-{{ checksum "Pipfile.lock" }}
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}
- ~/.local
- ~/.cache

- run:
name: run tests
command: |
. venv/bin/activate
pytest --cov=./
pipenv run pytest tests --cov=./
- store_artifacts:
path: test-reports
Expand Down

0 comments on commit 7f8333c

Please sign in to comment.