Skip to content

Commit 1d05ab5

Browse files
authored
Pin pytest-xdist to 2.5.0 (#1728)
* Pin pytest-xdist to 2.5.0 Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Delocate fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
1 parent 0661c67 commit 1d05ab5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build.wheel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ run_test() {
99
(cd wheelhouse && $entry -m pip install tensorflow_io_gcs_filesystem-*-cp${CPYTHON_VERSION}-*.whl)
1010
(cd wheelhouse && $entry -m pip install tensorflow_io-*-cp${CPYTHON_VERSION}-*.whl)
1111
TF_VERSION=$(/usr/bin/grep tensorflow tensorflow_io/python/ops/version_ops.py | /usr/bin/cut -d '"' -f 2)
12-
$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
12+
$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
1313
(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" \) \)))
1414
(cd tests && $entry -m pytest --benchmark-disable -v --import-mode=append $(find . -type f \( -iname "test_standalone_*.py" \)))
1515
}

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
cat > service_account_creds.json << EOF
5858
${{ secrets.GCP_CREDS }}
5959
EOF
60+
- uses: actions/setup-python@v1
61+
with:
62+
python-version: "3.8"
6063
- name: macOS
6164
run: |
6265
set -x -e
@@ -65,6 +68,7 @@ jobs:
6568
export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json"
6669
fi
6770
echo $PATH
71+
which python3
6872
python3 --version
6973
python3 -c 'import site; print(site.getsitepackages())'
7074
python3 .github/workflows/build.instruction.py --sudo=true docs/development.md "#### macOS" > source.sh
@@ -110,14 +114,17 @@ jobs:
110114
cat > service_account_creds.json << EOF
111115
${{ secrets.GCP_CREDS }}
112116
EOF
117+
- uses: actions/setup-python@v1
118+
with:
119+
python-version: "3.8"
113120
- name: Bazel on macOS
114121
run: |
115122
set -x -e
116123
export BAZEL_OPTIMIZATION="--config=optimization --config=cache"
117124
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
118125
export BAZEL_OPTIMIZATION="$BAZEL_OPTIMIZATION --remote_upload_local_results=true --google_credentials=service_account_creds.json"
119126
fi
120-
sudo -E -H bash -e .github/workflows/build.bazel.sh
127+
sudo -E -H bash -e .github/workflows/build.bazel.sh python3
121128
- uses: actions/upload-artifact@v2
122129
with:
123130
name: ${{ runner.os }}-bazel-bin
@@ -152,7 +159,7 @@ jobs:
152159
- name: Auditwheel ${{ matrix.python }} macOS
153160
run: |
154161
set -x -e
155-
python -m pip install twine delocate==0.9.1
162+
python -m pip install twine delocate==0.10.3
156163
delocate-wheel --version
157164
ls dist/*
158165
mkdir -p wheelhouse
@@ -624,7 +631,7 @@ jobs:
624631
- name: Auditwheel ${{ matrix.python }} macOS
625632
run: |
626633
set -x -e
627-
python -m pip install twine delocate==0.9.1
634+
python -m pip install twine delocate==0.10.3
628635
delocate-wheel --version
629636
ls dist/*
630637
mkdir -p wheelhouse

0 commit comments

Comments
 (0)