88 strategy :
99 matrix :
1010 os : [ubuntu-latest]
11- python-version : [3.7]
1211
1312 runs-on : ${{ matrix.os }}
1413 steps :
1514 - uses : actions/checkout@v2
1615 - name : Set up Python ${{ matrix.python-version }}
1716 uses : actions/setup-python@v1
1817 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+
2031 - name : Install dependencies
2132 run : |
2233 cd python
2334 python -m pip install --upgrade pip
24- pip install -r requirements.txt
25- pip install -r requirements-dev.txt
35+ make install
2636 - name : Test
2737 run : |
2838 cd python
3747 - uses : actions/checkout@v2
3848 - uses : actions/setup-python@v1
3949 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+
4163 - name : Install dependencies
4264 run : |
4365 cd python
@@ -61,12 +83,24 @@ jobs:
6183 - name : Set up Python
6284 uses : actions/setup-python@v1
6385 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+
6599 - name : Install dependencies
66100 run : |
67101 cd python
68102 python -m pip install --upgrade pip
69- pip install setuptools wheel twine
103+ pip3 install setuptools wheel twine
70104
71105 - name : Check Branch
72106 id : check-branch
85119 make install
86120 make generate
87121 make dist
88- python setup.py sdist bdist_wheel
122+ python3 setup.py sdist bdist_wheel
89123 twine upload --skip-existing dist/*
90124
91125 - name : Is Not A Publish Branch
0 commit comments