8
8
strategy :
9
9
matrix :
10
10
os : [ubuntu-latest]
11
- python-version : [3.7]
12
11
13
12
runs-on : ${{ matrix.os }}
14
13
steps :
15
14
- uses : actions/checkout@v2
16
15
- name : Set up Python ${{ matrix.python-version }}
17
16
uses : actions/setup-python@v1
18
17
with :
19
- python-version : ${{ matrix.python-version }}
18
+ python-version : 3.9
19
+ - uses : actions/cache@master
20
+ with :
21
+ path : ~/.cache/pip
22
+ key : ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }}
23
+ restore-keys : |
24
+ ${{ runner.os }}-pip-
25
+
26
+ - name : Install Protoc
27
+ uses : arduino/setup-protoc@master
28
+ - name : Install Protoc 3rd party protos
29
+ run : scripts/install-protoc.sh
30
+
20
31
- name : Install dependencies
21
32
run : |
22
33
cd python
23
34
python -m pip install --upgrade pip
24
- pip install -r requirements.txt
25
- pip install -r requirements-dev.txt
35
+ make install
26
36
- name : Test
27
37
run : |
28
38
cd python
37
47
- uses : actions/checkout@v2
38
48
- uses : actions/setup-python@v1
39
49
with :
40
- python-version : 3.7
50
+ python-version : 3.9
51
+ - uses : actions/cache@master
52
+ with :
53
+ path : ~/.cache/pip
54
+ key : ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }}
55
+ restore-keys : |
56
+ ${{ runner.os }}-pip-
57
+
58
+ - name : Install Protoc
59
+ uses : arduino/setup-protoc@master
60
+ - name : Install Protoc 3rd party protos
61
+ run : scripts/install-protoc.sh
62
+
41
63
- name : Install dependencies
42
64
run : |
43
65
cd python
@@ -61,12 +83,24 @@ jobs:
61
83
- name : Set up Python
62
84
uses : actions/setup-python@v1
63
85
with :
64
- python-version : ' 3.7'
86
+ python-version : ' 3.9'
87
+ - uses : actions/cache@master
88
+ with :
89
+ path : ~/.cache/pip
90
+ key : ${{ runner.os }}-pip-${{ hashFiles('python/requirements.txt') }}
91
+ restore-keys : |
92
+ ${{ runner.os }}-pip-
93
+
94
+ - name : Install Protoc
95
+ uses : arduino/setup-protoc@master
96
+ - name : Install Protoc 3rd party protos
97
+ run : scripts/install-protoc.sh
98
+
65
99
- name : Install dependencies
66
100
run : |
67
101
cd python
68
102
python -m pip install --upgrade pip
69
- pip install setuptools wheel twine
103
+ pip3 install setuptools wheel twine
70
104
71
105
- name : Check Branch
72
106
id : check-branch
85
119
make install
86
120
make generate
87
121
make dist
88
- python setup.py sdist bdist_wheel
122
+ python3 setup.py sdist bdist_wheel
89
123
twine upload --skip-existing dist/*
90
124
91
125
- name : Is Not A Publish Branch
0 commit comments