-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
46 lines (42 loc) · 1.28 KB
/
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
40
41
42
43
44
45
46
version: 2.1
workflows:
build-and-test:
jobs:
- build:
context: dockerauth
jobs:
build:
docker:
- image: cimg/python:3.10
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
resource_class: small
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "requirements.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: python -m pip install -r requirements.txt
- save_cache:
paths:
- ./cache
key: v1-dependencies-{{ checksum "requirements.txt" }}
- restore_cache:
keys:
- v1-dependencies-dev-{{ checksum "requirements-dev.txt" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-dev-
- run: python -m pip install -r requirements-dev.txt
- save_cache:
paths:
- ./cache
key: v1-dependencies-dev-{{ checksum "requirements-dev.txt" }}
- run:
command: python -m pytest
shell: /bin/bash
working_directory: ~/project/finishedgames
environment:
DJANGO_SETTINGS_MODULE: finishedgames.settings.dev