File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : ' 3.8'
2
+
3
+ services :
4
+ app :
5
+ image : python:3.9-slim
6
+ container_name : python_sdk_app_container
7
+ working_dir : /app
8
+ volumes :
9
+ - .:/app
10
+ - python_packages:/usr/local/lib/python3.9/site-packages
11
+ depends_on :
12
+ - install_deps
13
+ command : python ./run_checks.py
14
+
15
+ install_deps :
16
+ image : python:3.9-slim
17
+ container_name : python_sdk_install_deps_container
18
+ working_dir : /app
19
+ volumes :
20
+ - .:/app
21
+ - .cache/pip:/root/.cache/pip
22
+ - python_packages:/usr/local/lib/python3.9/site-packages
23
+ command : pip install --no-cache-dir -r requirements.txt
24
+
25
+ install_test_deps :
26
+ image : python:3.9-slim
27
+ container_name : python_sdk_install_test_deps_container
28
+ working_dir : /app
29
+ volumes :
30
+ - .:/app
31
+ - .cache/pip:/root/.cache/pip
32
+ - python_packages:/usr/local/lib/python3.9/site-packages
33
+ depends_on :
34
+ - install_deps
35
+ command : pip install --no-cache-dir -r test-requirements.txt
36
+
37
+ test :
38
+ image : python:3.9-slim
39
+ container_name : python_sdk_test_container
40
+ working_dir : /app
41
+ volumes :
42
+ - .:/app
43
+ - python_packages:/usr/local/lib/python3.9/site-packages
44
+ depends_on :
45
+ - install_test_deps
46
+ command : python -m pytest
47
+ env_file :
48
+ - .env
49
+
50
+ volumes :
51
+ python_packages :
52
+
You can’t perform that action at this time.
0 commit comments