-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
51 lines (45 loc) · 1.09 KB
/
config.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
47
48
49
50
51
version: 2.1
orbs:
python: circleci/python@0.2.1
browser-tools: circleci/browser-tools@1.1.3
docker-defaults: &docker-defaults
docker:
- image: circleci/python:3.9-browsers
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
environment:
PIPENV_VENV_IN_PROJECT: true
commands:
setup-environment:
steps:
- checkout
- run: if [ -d "test-reports" ]; then rm -Rf test-reports; fi
- run: mkdir test-reports
- run:
command: sudo pip install --upgrade pip
name: Upgrade pip
- python/load-cache
- python/install-deps
- python/save-cache
store-test-reports:
steps:
- store_artifacts:
path: test-reports/
destination: tr1
- store_test_results:
path: test-reports/
jobs:
test-api:
<<: *docker-defaults
steps:
- setup-environment
- run:
command: ./manage.py test
name: Test Appointments API
- store-test-reports
workflows:
testing:
jobs:
- test-api:
context: CONFIG