1818jobs :
1919  lint :
2020    name : Lint 
21-     runs-on : ubuntu-20 .04 
21+     runs-on : ubuntu-22 .04 
2222    steps :
2323      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
2424      - name : Run Lint Script for Bazel/Pyupgrade/Black/Clang 
2525        run : | 
2626          set -x -e 
2727          git log --pretty -1 
28-           sudo python3 -m pip  install -U numpy black pyupgrade  
29-           bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:check -- bazel pyupgrade black  clang 
28+           sudo apt update -y -qq && sudo apt  install -y -qq libtinfo5  
29+           TF_PYTHON_VERSION=3.10  bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:check -- bazel clang 
3030
3131   lint-docs :
3232    name : Lint for Docs 
6262          EOF 
6363       - uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236  #  v4.7.1
6464        with :
65-           python-version : " 3.8 " 
65+           python-version : " 3.9 " 
6666      - name : macOS 
6767        run : | 
6868          set -x -e 
8080
8181   linux :
8282    name : Linux 
83-     runs-on : ubuntu-20 .04 
83+     runs-on : ubuntu-22 .04 
8484    container :
85-       image : ubuntu:20 .04 
85+       image : ubuntu:22 .04 
8686      env :
8787        REPO_NAME : ${{ env.REPO_NAME }} 
8888        EVENT_NAME : ${{ env.EVENT_NAME }} 
9393          cat > service_account_creds.json << EOF 
9494          ${{ secrets.GCP_CREDS }} 
9595          EOF 
96-        - name : Ubuntu 20 .04 
96+        - name : Ubuntu 22 .04 
9797        shell : bash 
9898        run : | 
9999          set -x -e 
@@ -103,7 +103,7 @@ jobs:
103103          fi 
104104          apt update 
105105          apt-get install -y python3 
106-           python3 .github/workflows/build.instruction.py docs/development.md "##### Ubuntu 20 .04" > source.sh 
106+           python3 .github/workflows/build.instruction.py docs/development.md "##### Ubuntu 22 .04" > source.sh 
107107          cat source.sh 
108108          bash -x -e source.sh 
109109
@@ -138,7 +138,7 @@ jobs:
138138    runs-on : [self-hosted, macOS, ARM64] 
139139    strategy :
140140      matrix :
141-         python : ['3.7', '3.8', '3. 9', '3.10', '3.11'] 
141+         python : ['3.9', '3.10', '3.11'] 
142142    steps :
143143      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
144144      - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a  #  v3.0.2
@@ -185,7 +185,7 @@ jobs:
185185          EOF 
186186       - uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236  #  v4.7.1
187187        with :
188-           python-version : " 3.8 " 
188+           python-version : " 3.10 " 
189189      - name : Bazel on macOS 
190190        run : | 
191191          set -x -e 
@@ -211,7 +211,7 @@ jobs:
211211    runs-on : macOS-11 
212212    strategy :
213213      matrix :
214-         python : ['3.7', '3.8', '3. 9', '3.10', '3.11'] 
214+         python : ['3.9', '3.10', '3.11'] 
215215    steps :
216216      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
217217      - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a  #  v3.0.2
@@ -252,7 +252,7 @@ jobs:
252252    runs-on : macOS-11 
253253    strategy :
254254      matrix :
255-         python : ['3.8', '3. 9'] 
255+         python : ['3.9'] 
256256    steps :
257257      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
258258      - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a  #  v3.0.2
@@ -289,12 +289,7 @@ jobs:
289289
290290   linux-bazel :
291291    name : Bazel Linux 
292-     runs-on : ubuntu-20.04 
293-     container :
294-       image : gcr.io/tensorflow-testing/nosla-ubuntu16.04-manylinux2010 
295-       env :
296-         REPO_NAME : ${{ env.REPO_NAME }} 
297-         EVENT_NAME : ${{ env.EVENT_NAME }} 
292+     runs-on : ubuntu-22.04 
298293    steps :
299294      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
300295      - name : GCP 
@@ -305,13 +300,26 @@ jobs:
305300       - name : Bazel on Linux 
306301        shell : bash 
307302        run : | 
308-           set -x -e 
309-           export BAZEL_OPTIMIZATION="--config=optimization --config=linux_ci --config=cache" 
310-           if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then 
311-             export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json" 
312-           fi 
313-           bash -x -e .github/workflows/build.bazel.sh python3.8 
314-           sudo cp .bazelrc build/tensorflow_io/ 
303+           set -x 
304+           #export BAZEL_OPTIMIZATION="--config=optimization --config=linux_ci --config=cache" 
305+           #if [[ "${{ env.EVENT_NAME }}" == "push" && "${{ env.REPO_NAME }}" == "tensorflow/io" ]]; then 
306+           #  export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_upload_local_results=true --google_credentials=service_account_creds.json" 
307+           #fi 
308+           docker build -t io -f tools/docker/build.Dockerfile --build-arg PYTHON_VERSION=3.10 --build-arg TENSORFLOW_VERSION=2.14 --build-arg BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION}" --progress=plain . 
309+           docker create -it --name io io bash 
310+           sleep 5 
311+           docker cp -L io:/opt/io/bazel-bin build 
312+           docker cp -L io:/opt/io/.bazelrc build/tensorflow_io/ 
313+           sudo chown -R $(id -nu):$(id -ng) . 
314+           find build/tensorflow_io -type f 
315+           find build/tensorflow_io_gcs_filesystem -type f 
316+           find build/tensorflow_io -type l 
317+           find build/tensorflow_io_gcs_filesystem -type l 
318+           find build/tensorflow_io -name '*runfiles*' 
319+           find build/tensorflow_io_gcs_filesystem -name '*runfiles*' 
320+           find build/tensorflow_io -name '*runfiles*' | xargs rm -rf 
321+           find build/tensorflow_io_gcs_filesystem -name '*runfiles*' | xargs rm -rf 
322+           sudo rm -rf build/tensorflow_io/core/golang_ops.h 
315323       - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32  #  v3.1.3
316324        with :
317325          name : ${{ runner.os }}-bazel-bin 
@@ -325,7 +333,7 @@ jobs:
325333    runs-on : ubuntu-20.04 
326334    strategy :
327335      matrix :
328-         python : ['3.7', '3.8', '3. 9', '3.10', '3.11'] 
336+         python : ['3.9', '3.10', '3.11'] 
329337    steps :
330338      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
331339      - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a  #  v3.0.2
@@ -344,7 +352,7 @@ jobs:
344352          set -x -e 
345353          ls dist/* 
346354          for f in dist/*.whl; do 
347-             docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2010_x86_64  bash -x -e /v/tools/build/auditwheel repair --plat manylinux2010_x86_64  $f 
355+             docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2014_x86_64  bash -x -e /v/tools/build/auditwheel repair --plat manylinux2014_x86_64  $f 
348356          done 
349357          sudo chown -R $(id -nu):$(id -ng) . 
350358          ls wheelhouse/* 
@@ -356,12 +364,15 @@ jobs:
356364  linux-test :
357365    name : Test ${{ matrix.python }} Linux 
358366    needs : linux-wheel 
359-     runs-on : ubuntu-20 .04 
367+     runs-on : ubuntu-22 .04 
360368    strategy :
361369      matrix :
362-         python : ['3.8', '3. 9'] 
370+         python : ['3.9'] 
363371    steps :
364372      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
373+       - uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236  #  v4.7.1
374+         with :
375+           python-version : ${{ matrix.python }} 
365376      - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a  #  v3.0.2
366377        with :
367378          name : ${{ runner.os }}-${{ matrix.python }}-wheel 
@@ -373,20 +384,20 @@ jobs:
373384          bash -x -e tests/test_pulsar/pulsar_test.sh 
374385          bash -x -e tests/test_kafka/kafka_test.sh 
375386          bash -x -e tests/test_aws/aws_test.sh 
376-           bash -x -e tests/test_gcloud/test_pubsub_bigtable.sh 
377-           bash -x -e tests/test_prometheus/prometheus_test.sh start 
387+           echo  bash -x -e tests/test_gcloud/test_pubsub_bigtable.sh 
388+           echo  bash -x -e tests/test_prometheus/prometheus_test.sh start 
378389          bash -x -e tests/test_elasticsearch/elasticsearch_test.sh start 
379390          bash -x -e tests/test_mongodb/mongodb_test.sh start 
380391          bash -x -e tests/test_azure/start_azure.sh 
381-           bash -x -e tests/test_sql/sql_test.sh 
392+           bash -x -e tests/test_sql/sql_test.sh postgresql  
382393          bash -x -e tests/test_gcloud/test_gcs.sh gcs-emulator 
383394          bash -x -e tests/test_hdfs/hdfs_test.sh 
384395       - name : Test Linux 
385396        run : | 
386397          set -x -e 
387398          df -h 
388399          docker run -i --rm -v $PWD:/v -w /v --net=host \ 
389-             buildpack-deps:20 .04 \ 
400+             buildpack-deps:22 .04 \ 
390401            bash -x -e .github/workflows/build.wheel.sh python${{ matrix.python }} 
391402
392403   windows-bazel :
@@ -438,7 +449,7 @@ jobs:
438449    runs-on : windows-latest 
439450    strategy :
440451      matrix :
441-         python : ['3.7', '3.8', '3. 9', '3.10', '3.11'] 
452+         python : ['3.9', '3.10', '3.11'] 
442453    steps :
443454      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
444455      - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a  #  v3.0.2
@@ -469,7 +480,7 @@ jobs:
469480    runs-on : windows-latest 
470481    strategy :
471482      matrix :
472-         python : ['3.8', '3. 9'] 
483+         python : ['3.9'] 
473484    steps :
474485      - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  #  v4.1.0
475486      - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a  #  v3.0.2
@@ -789,7 +800,7 @@ jobs:
789800          set -x -e 
790801          ls dist/* 
791802          for f in dist/*.whl; do 
792-             docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2010_x86_64  bash -x -e /v/tools/build/auditwheel repair --plat manylinux2010_x86_64  $f 
803+             docker run -i --rm -v $PWD:/v -w /v --net=host quay.io/pypa/manylinux2014_x86_64  bash -x -e /v/tools/build/auditwheel repair --plat manylinux2014_x86_64  $f 
793804          done 
794805          sudo chown -R $(id -nu):$(id -ng) . 
795806          ls wheelhouse/* 
0 commit comments