forked from vmagamedov/grpclib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pi.yaml
123 lines (105 loc) · 2.49 KB
/
pi.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
- !Image
name: py38
from: &py38 !DockerImage python:3.8.19-slim
repository: localhost/grpclib/py38
tasks:
- run: pip3 install --no-cache-dir -r {{runtime}}
runtime: !File "requirements/runtime.txt"
- !Image
name: test38
from: *py38
repository: localhost/grpclib/test38
tasks:
- run: pip3 install --no-cache-dir -r {{test}}
test: !File "requirements/test.txt"
- !Image
name: check38
from: *py38
repository: localhost/grpclib/check38
tasks:
- run: pip3 install --no-cache-dir -r {{check}}
check: !File "requirements/check.txt"
- !Image
name: docs38
from: *py38
repository: localhost/grpclib/docs38
tasks:
- run: pip3 install --no-cache-dir -r {{docs}}
docs: !File "requirements/docs.txt"
- !Command
name: server
image: py38
run: python3 -m helloworld.server
network-name: server
environ:
PYTHONPATH: examples
ports:
- !Expose { port: 50051, as: 50051 }
- !Command
name: client
image: py38
run: python3 -m helloworld.client
environ:
PYTHONPATH: examples
- !Command
name: docs
image: docs38
run: sphinx-build -b html docs build
environ:
PYTHONPATH: .
- !Command
name: test38
image: test38
run: [py.test]
environ:
PYTHONPATH: .
- !Command
name: test38
image: test38
run: [py.test]
environ:
PYTHONPATH: .
- !Command
name: flake8
image: check38
run: [flake8]
- !Command
name: mypy
image: check38
run: [mypy]
- !Image
name: py312
from: &py312 !DockerImage python:3.12.3-slim
repository: localhost/grpclib/py312
tasks:
- run: pip3 install --no-cache-dir -r {{runtime}}
runtime: !File "requirements/runtime.txt"
- !Image
name: test312
from: *py312
repository: localhost/grpclib/test312
tasks:
- run: pip3 install --no-cache-dir -r {{test}}
test: !File "requirements/test.txt"
- !Command
name: test312
image: test312
run: [py.test]
environ:
PYTHONPATH: .
- !Image
name: pip-compile
from: !DockerImage python:3.8.19-slim
repository: localhost/grpclib/pip-compile
tasks:
- run: pip3 install --no-cache-dir pip-tools
- !Command
name: upgrade
image: pip-compile
run: |
pip-compile -U --annotation-style=line setup.py -o setup.txt
pip-compile -U --annotation-style=line requirements/runtime.in
pip-compile -U --annotation-style=line requirements/docs.in
pip-compile -U --annotation-style=line requirements/test.in
pip-compile -U --annotation-style=line requirements/check.in
pip-compile -U --annotation-style=line requirements/release.in