Skip to content

Commit

Permalink
Merge pull request #60 from Keep-Current/circleci-pipenv-patch
Browse files Browse the repository at this point in the history
updated circleCI to use pipenv
  • Loading branch information
liadmagen committed Oct 7, 2018
2 parents 7f829b6 + 3ca1779 commit ea8ec1a
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,25 @@ 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: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
sudo pip install pipenv
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 ea8ec1a

Please sign in to comment.