From b59523e47a47e6ba470f28752e56df947a19818d Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 2 Nov 2022 17:52:17 +0000 Subject: [PATCH 1/3] Pin pytest-xdist to 2.5.0 Signed-off-by: Yong Tang --- .github/workflows/build.wheel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.wheel.sh b/.github/workflows/build.wheel.sh index c25ba12d3..65bb98f17 100755 --- a/.github/workflows/build.wheel.sh +++ b/.github/workflows/build.wheel.sh @@ -9,7 +9,7 @@ run_test() { (cd wheelhouse && $entry -m pip install tensorflow_io_gcs_filesystem-*-cp${CPYTHON_VERSION}-*.whl) (cd wheelhouse && $entry -m pip install tensorflow_io-*-cp${CPYTHON_VERSION}-*.whl) TF_VERSION=$(/usr/bin/grep tensorflow tensorflow_io/python/ops/version_ops.py | /usr/bin/cut -d '"' -f 2) - $entry -m pip install -q $TF_VERSION pytest pytest-benchmark pytest-xdist boto3 fastavro avro-python3 scikit-image pandas pyarrow==3.0.0 google-cloud-pubsub==2.1.0 google-cloud-bigtable==1.6.0 google-cloud-bigquery-storage==1.1.0 google-cloud-bigquery==2.3.1 google-cloud-storage==1.32.0 PyYAML==5.3.1 azure-storage-blob==12.8.1 azure-cli==2.29.0 + $entry -m pip install -q $TF_VERSION pytest pytest-benchmark pytest-xdist==2.5.0 boto3 fastavro avro-python3 scikit-image pandas pyarrow==3.0.0 google-cloud-pubsub==2.1.0 google-cloud-bigtable==1.6.0 google-cloud-bigquery-storage==1.1.0 google-cloud-bigquery==2.3.1 google-cloud-storage==1.32.0 PyYAML==5.3.1 azure-storage-blob==12.8.1 azure-cli==2.29.0 (cd tests && $entry -m pytest --benchmark-disable -v --import-mode=append --forked --numprocesses=auto --dist loadfile $(find . -type f \( -iname "test_*.py" ! \( -iname "test_standalone_*.py" \) \))) (cd tests && $entry -m pytest --benchmark-disable -v --import-mode=append $(find . -type f \( -iname "test_standalone_*.py" \))) } From 91ade34b9197fbd63d457bbad41b5f75823ec9bc Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Wed, 2 Nov 2022 17:42:28 +0000 Subject: [PATCH 2/3] Fix Signed-off-by: Yong Tang --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26d779e3c..0aa2cfce2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,6 +57,9 @@ jobs: cat > service_account_creds.json << EOF ${{ secrets.GCP_CREDS }} EOF + - uses: actions/setup-python@v1 + with: + python-version: "3.8" - name: macOS run: | set -x -e @@ -65,6 +68,7 @@ jobs: export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json" fi echo $PATH + which python3 python3 --version python3 -c 'import site; print(site.getsitepackages())' python3 .github/workflows/build.instruction.py --sudo=true docs/development.md "#### macOS" > source.sh @@ -110,6 +114,9 @@ jobs: cat > service_account_creds.json << EOF ${{ secrets.GCP_CREDS }} EOF + - uses: actions/setup-python@v1 + with: + python-version: "3.8" - name: Bazel on macOS run: | set -x -e @@ -117,7 +124,7 @@ jobs: if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json" fi - sudo -E -H bash -e .github/workflows/build.bazel.sh + sudo -E -H bash -e .github/workflows/build.bazel.sh python3 - uses: actions/upload-artifact@v2 with: name: ${{ runner.os }}-bazel-bin From 1fc6003ea86c44d8e2c62a7c903e7e7ba6aa0e18 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Mon, 7 Nov 2022 00:13:05 +0000 Subject: [PATCH 3/3] Delocate fix Signed-off-by: Yong Tang --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0aa2cfce2..c0b452230 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -159,7 +159,7 @@ jobs: - name: Auditwheel ${{ matrix.python }} macOS run: | set -x -e - python -m pip install twine delocate==0.9.1 + python -m pip install twine delocate==0.10.3 delocate-wheel --version ls dist/* mkdir -p wheelhouse @@ -631,7 +631,7 @@ jobs: - name: Auditwheel ${{ matrix.python }} macOS run: | set -x -e - python -m pip install twine delocate==0.9.1 + python -m pip install twine delocate==0.10.3 delocate-wheel --version ls dist/* mkdir -p wheelhouse