31
31
32
32
jobs :
33
33
build :
34
- runs-on : ubuntu-20 .04
34
+ runs-on : ubuntu-22 .04
35
35
needs : lint-python-flake8 # fail fast in case of "undefined variable" errors
36
36
strategy :
37
37
fail-fast : false
@@ -135,11 +135,11 @@ jobs:
135
135
fail-fast : false
136
136
matrix :
137
137
mode : ['native']
138
- platform : ['ubuntu-20 .04', 'macos-11']
138
+ platform : ['ubuntu-22 .04', 'macos-11']
139
139
rust_version : ['1.58.1']
140
140
include :
141
141
- mode : ' universal'
142
- platform : ' ubuntu-20 .04'
142
+ platform : ' ubuntu-22 .04'
143
143
rust_version : ' 1.58.1'
144
144
steps :
145
145
- uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
@@ -207,7 +207,7 @@ jobs:
207
207
path : /tmp/pip_package/*
208
208
209
209
lint-python-flake8 :
210
- runs-on : ubuntu-20 .04
210
+ runs-on : ubuntu-22 .04
211
211
strategy :
212
212
fail-fast : false
213
213
matrix :
@@ -232,19 +232,24 @@ jobs:
232
232
run : flake8 . --count --select=E9,F63,F7,F82,F401 --show-source --statistics
233
233
234
234
lint-python-yaml-docs :
235
- runs-on : ubuntu-20 .04
235
+ runs-on : ubuntu-22 .04
236
236
steps :
237
237
- uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
238
238
- uses : actions/setup-python@152ba7c4dd6521b8e9c93f72d362ce03bf6c4f20
239
239
with :
240
- python-version : ' 3.6 '
240
+ python-version : ' 3.7 '
241
241
architecture : ' x64'
242
242
- name : ' Install black, yamllint, and the TensorFlow docs notebook tools'
243
243
run : |
244
244
python -m pip install -U pip
245
245
nbfmt_version="174c9a5c1cc51a3af1de98d84824c811ecd49029"
246
246
pip install black yamllint -c ./tensorboard/pip_package/requirements_dev.txt
247
247
pip install -U git+https://github.com/tensorflow/docs@${nbfmt_version}
248
+ # Workaround tensorflow incompatibility with protobuf>4.
249
+ # See: https://github.com/tensorflow/tensorboard/issues/5708.
250
+ # See: https://github.com/tensorflow/tensorflow/issues/53234.
251
+ - name : ' Downgrade to compatible protobuf version'
252
+ run : pip install -U "protobuf<3.20"
248
253
- run : pip freeze --all
249
254
- name : ' Lint Python code for style with Black'
250
255
# You can run `black .` to fix all Black complaints.
@@ -256,7 +261,7 @@ jobs:
256
261
run : git ls-files -z '*.ipynb' | xargs -0 python3 -m tensorflow_docs.tools.nbfmt --test
257
262
258
263
lint-rust :
259
- runs-on : ubuntu-20 .04
264
+ runs-on : ubuntu-22 .04
260
265
strategy :
261
266
matrix :
262
267
rust_version : ['1.58.1']
@@ -300,7 +305,7 @@ jobs:
300
305
git diff --staged --exit-code
301
306
302
307
lint-frontend :
303
- runs-on : ubuntu-20 .04
308
+ runs-on : ubuntu-22 .04
304
309
steps :
305
310
- uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
306
311
- uses : actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
@@ -331,7 +336,7 @@ jobs:
331
336
! git grep -E '@npm//numeric' 'tensorboard/*/BUILD' ':!tensorboard/webapp/third_party/**'
332
337
333
338
lint-misc : # build, protos, etc.
334
- runs-on : ubuntu-20 .04
339
+ runs-on : ubuntu-22 .04
335
340
steps :
336
341
- uses : actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e
337
342
- name : ' Set up Buildifier'
0 commit comments