@@ -13,6 +13,10 @@ concurrency:
1313 group : tests-${{ github.head_ref }}
1414 cancel-in-progress : true
1515
16+ env :
17+ SHOWCASE_VERSION : 0.25.0
18+ PROTOC_VERSION : 3.20.2
19+
1620jobs :
1721 docs :
1822 # Don't upgrade python version; there's a bug in 3.10 sphinx
6670 tar -xf showcase-*
6771 ./gapic-showcase run &
6872 cd -
69- env :
70- SHOWCASE_VERSION : 0.25.0
7173 - name : Install nox.
7274 run : python -m pip install nox
7375 - name : Install protoc
7880 cd /usr/src/protoc/
7981 unzip protoc-${PROTOC_VERSION}.zip
8082 sudo ln -s /usr/src/protoc/bin/protoc /usr/local/bin/protoc
81- env :
82- PROTOC_VERSION : 3.19.0
8383 - name : Run showcase tests.
8484 run : nox -s ${{ matrix.target }}
8585 showcase-mtls :
@@ -108,13 +108,13 @@ jobs:
108108 sudo apt-get install -y curl pandoc unzip gcc
109109 - name : Install nox.
110110 run : python -m pip install nox
111- - name : Install protoc 3.19.0 .
111+ - name : Install protoc.
112112 run : |
113113 sudo mkdir -p /usr/src/protoc/
114114 sudo chown -R ${USER} /usr/src
115- curl --location https://github.com/google/protobuf/releases/download/v3.19.0 /protoc-3.19.0 -linux-x86_64.zip --output /usr/src/protoc/protoc-3.19.0 .zip
115+ curl --location https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION} /protoc-${PROTOC_VERSION} -linux-x86_64.zip --output /usr/src/protoc/protoc-${PROTOC_VERSION} .zip
116116 cd /usr/src/protoc/
117- unzip protoc-3.19.0 .zip
117+ unzip protoc-${PROTOC_VERSION} .zip
118118 sudo ln -s /usr/src/protoc/bin/protoc /usr/local/bin/protoc
119119 cd -
120120 - name : Run showcase tests.
@@ -127,8 +127,6 @@ jobs:
127127
128128 cd ..
129129 nox -s ${{ matrix.target }}
130- env :
131- SHOWCASE_VERSION : 0.19.0
132130 # TODO(yon-mg): add compute unit tests
133131 showcase-unit :
134132 strategy :
@@ -147,20 +145,18 @@ jobs:
147145 run : |
148146 sudo apt-get update
149147 sudo apt-get install -y curl pandoc unzip gcc
150- - name : Install protoc 3.19.0 .
148+ - name : Install protoc.
151149 run : |
152150 sudo mkdir -p /usr/src/protoc/
153151 sudo chown -R ${USER} /usr/src/
154- curl --location https://github.com/google/protobuf/releases/download/v3.19.0 /protoc-3.19.0 -linux-x86_64.zip --output /usr/src/protoc/protoc-3.19.0 .zip
152+ curl --location https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION} /protoc-${PROTOC_VERSION} -linux-x86_64.zip --output /usr/src/protoc/protoc-${PROTOC_VERSION} .zip
155153 cd /usr/src/protoc/
156- unzip protoc-3.19.0 .zip
154+ unzip protoc-${PROTOC_VERSION} .zip
157155 sudo ln -s /usr/src/protoc/bin/protoc /usr/local/bin/protoc
158156 - name : Install nox.
159157 run : python -m pip install nox
160158 - name : Run unit tests.
161159 run : nox -s showcase_unit${{ matrix.variant }}-${{ matrix.python }}
162- env :
163- SHOWCASE_VERSION : 0.19.0
164160 showcase-unit-add-iam-methods :
165161 runs-on : ubuntu-latest
166162 steps :
@@ -174,20 +170,18 @@ jobs:
174170 run : |
175171 sudo apt-get update
176172 sudo apt-get install -y curl pandoc unzip gcc
177- - name : Install protoc 3.19.0 .
173+ - name : Install protoc.
178174 run : |
179175 sudo mkdir -p /usr/src/protoc/
180176 sudo chown -R ${USER} /usr/src/
181- curl --location https://github.com/google/protobuf/releases/download/v3.19.0 /protoc-3.19.0 -linux-x86_64.zip --output /usr/src/protoc/protoc-3.19.0 .zip
177+ curl --location https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION} /protoc-${PROTOC_VERSION} -linux-x86_64.zip --output /usr/src/protoc/protoc-${PROTOC_VERSION} .zip
182178 cd /usr/src/protoc/
183- unzip protoc-3.19.0 .zip
179+ unzip protoc-${PROTOC_VERSION} .zip
184180 sudo ln -s /usr/src/protoc/bin/protoc /usr/local/bin/protoc
185181 - name : Install nox.
186182 run : python -m pip install nox
187183 - name : Run unit tests.
188184 run : nox -s showcase_unit_add_iam_methods
189- env :
190- SHOWCASE_VERSION : 0.19.0
191185 showcase-mypy :
192186 runs-on : ubuntu-latest
193187 strategy :
@@ -204,20 +198,18 @@ jobs:
204198 run : |
205199 sudo apt-get update
206200 sudo apt-get install -y curl pandoc unzip gcc
207- - name : Install protoc 3.19.0 .
201+ - name : Install protoc.
208202 run : |
209203 sudo mkdir -p /usr/src/protoc/
210204 sudo chown -R ${USER} /usr/src/
211- curl --location https://github.com/google/protobuf/releases/download/v3.19.0 /protoc-3.19.0 -linux-x86_64.zip --output /usr/src/protoc/protoc-3.19.0 .zip
205+ curl --location https://github.com/google/protobuf/releases/download/v${PROTOC_VERSION} /protoc-${PROTOC_VERSION} -linux-x86_64.zip --output /usr/src/protoc/protoc-${PROTOC_VERSION} .zip
212206 cd /usr/src/protoc/
213- unzip protoc-3.19.0 .zip
207+ unzip protoc-${PROTOC_VERSION} .zip
214208 sudo ln -s /usr/src/protoc/bin/protoc /usr/local/bin/protoc
215209 - name : Install nox.
216210 run : python -m pip install nox
217211 - name : Typecheck the generated output.
218212 run : nox -s showcase_mypy${{ matrix.variant }}
219- env :
220- SHOWCASE_VERSION : 0.19.0
221213 snippetgen :
222214 runs-on : ubuntu-latest
223215 steps :
0 commit comments