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" \))) } diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26d779e3c..c0b452230 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 @@ -152,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 @@ -624,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