Skip to content
This repository was archived by the owner on Jan 2, 2020. It is now read-only.

Commit 2fe282e

Browse files
author
Muyiwa Olu
committed
Add circleci support
1 parent a7d1ce4 commit 2fe282e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.circleci/config.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/python:3.7.2
6+
7+
working_directory: ~/monzo-python
8+
9+
steps:
10+
- checkout
11+
- restore_cache:
12+
keys:
13+
- v1-dependencies-{{ checksum "requirements.txt" }}
14+
- v1-dependencies-
15+
- run:
16+
name: install dependencies
17+
command: |
18+
python3 -m venv venv
19+
. venv/bin/activate
20+
pip install -r requirements.txt
21+
- save_cache:
22+
paths:
23+
- ./venv
24+
key: v1-dependencies-{{ checksum "requirements.txt" }}
25+
- run:
26+
name: run tests
27+
command: |
28+
. venv/bin/activate
29+
python -m pytest tests/
30+
31+
- store_artifacts:
32+
path: test-reports
33+
destination: test-reports

0 commit comments

Comments
 (0)