Skip to content

Commit

Permalink
simpler package caching method
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <[email protected]>
  • Loading branch information
andrewwhitehead committed Jun 28, 2019
1 parent 1917be8 commit 826ff48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,23 @@ jobs:
- run:
name: Install Python Dependencies
command: |
[ ! -d test-packages ] && mkdir test-packages
pip install \
--target test-packages \
--user \
-r requirements.txt \
-r requirements.dev.txt \
pytest
- save_cache:
paths:
- test-packages
- .local/lib/python3.6/site-packages
key: v2-pip-dependencies-{{ .Branch }}-{{ checksum "requirements.txt" }}-{{ checksum "requirements.dev.txt" }}

- run:
name: Run Agent Tests
command: |
mkdir test-reports
mkdir .coverage
PYTHONPATH="`pwd`/test-packages:$PYTHONPATH" pytest
pytest
- run:
name: Push to Codecov.io
Expand Down

0 comments on commit 826ff48

Please sign in to comment.