Skip to content
This repository was archived by the owner on Feb 21, 2026. It is now read-only.

Commit 6f4a968

Browse files
authored
Merge pull request #10 from nteract/circleci
set up CI for bookstore
2 parents 753131a + a528da0 commit 6f4a968

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.circleci/config.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Python CircleCI 2.0 configuration file
2+
#
3+
# Check https://circleci.com/docs/2.0/language-python/ for more details
4+
#
5+
version: 2
6+
jobs:
7+
build:
8+
docker:
9+
# specify the version you desire here
10+
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
11+
- image: circleci/python:3.6.1
12+
13+
# Specify service dependencies here if necessary
14+
# CircleCI maintains a library of pre-built images
15+
# documented at https://circleci.com/docs/2.0/circleci-images/
16+
# - image: circleci/postgres:9.4
17+
18+
working_directory: ~/repo
19+
20+
steps:
21+
- checkout
22+
23+
# Download and cache dependencies
24+
- restore_cache:
25+
keys:
26+
- v1-dependencies-{{ checksum "requirements.txt" }}
27+
# fallback to using the latest cache if no exact match is found
28+
- v1-dependencies-
29+
30+
- run:
31+
name: install dependencies
32+
command: |
33+
python3 -m venv venv
34+
. venv/bin/activate
35+
pip install -r requirements.txt
36+
pip install -r requirements-dev.txt
37+
38+
- save_cache:
39+
paths:
40+
- ./venv
41+
key: v1-dependencies-{{ checksum "requirements.txt" }}-{{ checksum "requirements-dev.txt" }}

0 commit comments

Comments
 (0)