-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
39 lines (37 loc) · 972 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: 2.1
workflows:
build:
jobs:
- build:
name: Build & Test
context: AWS Deploy
jobs:
build:
working_directory: ~/nyprsetuptools
docker:
- image: circleci/python:3.6
steps:
- checkout
- restore_cache:
key: deps-{{ checksum "setup.py" }}-{{ checksum "circle.yml" }}
- setup_remote_docker
- run:
name: Install Requirements
command: |
if [[ ! -d ~/.venv ]]; then
python -m venv ~/.venv
. ~/.venv/bin/activate
pip install -e .
pip install pytest
fi
- run:
name: Test
command: |
. ~/.venv/bin/activate
pytest
- save_cache:
key: deps-{{ checksum "setup.py" }}-{{ checksum "circle.yml" }}
paths:
- ~/.venv
- ~/nyprsetuptools/nyprsetuptools.egg-info
- ~/nyprsetuptools/.eggs