Skip to content

Commit f0b7b69

Browse files
committed
Use venv for caching dependencies
1 parent 18337c1 commit f0b7b69

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

.circleci/config.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,27 @@ jobs:
1515
- v1-dependencies-<< parameters.python >>-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
1616
# fallback to using the latest cache if no exact match is found
1717
- v1-dependencies-<< parameters.python >>--
18-
19-
- run: pip install -r requirements.txt
20-
- run: pip install -r requirements-dev.txt
21-
- run: nose2 -v
22-
- run: flake8
18+
- run:
19+
name: Install Dependencies
20+
command: |
21+
python3 -m venv venv
22+
. venv/bin/activate
23+
pip install -r requirements.txt
24+
pip install -r requirements-dev.txt
25+
- run:
26+
name: Run Unit Tests
27+
command: |
28+
. venv/bin/activate
29+
nose2 -v
30+
- run:
31+
name: Run Unit Tests
32+
command: |
33+
. venv/bin/activate
34+
flake8
2335
2436
- save_cache:
2537
paths:
26-
- /usr/local/lib/python<<parameters.python>>/site-packages
38+
- ./venv
2739
key: v1-dependencies-<< parameters.python >>-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}
2840

2941
workflows:

0 commit comments

Comments
 (0)