Skip to content

Commit b0f050a

Browse files
authored
fix: Sync publish and build_wheels workflow to fix verify wheel error. (#2871)
* Fix publish flow Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix publish flow Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai> * Fix Signed-off-by: Kevin Zhang <kzhang@tecton.ai>
1 parent ffb0892 commit b0f050a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/publish.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
user: __token__
139139
password: ${{ secrets.PYPI_PASSWORD }}
140140

141-
build-python-wheels:
141+
build-python-wheel:
142142
name: Build wheels on ${{ matrix.os }}
143143
runs-on: ${{ matrix.os }}
144144
strategy:
@@ -216,7 +216,7 @@ jobs:
216216

217217
verify-python-wheel:
218218
runs-on: ${{ matrix.os }}
219-
needs: [build-python-wheels, build-source-distribution]
219+
needs: [build-python-wheel, build-source-distribution]
220220
strategy:
221221
matrix:
222222
os: [ubuntu-latest, macos-10.15 ]
@@ -256,16 +256,17 @@ jobs:
256256
cd dist/
257257
pip install wheel
258258
for f in *.whl; do pip install $f || true; done
259-
- name: Install go from sdist
260-
if: ${{ matrix.from-source }}
259+
- name: Install dist with go
260+
if: ${{ matrix.from-source && (matrix.python-version != '3.10' || matrix.os == 'ubuntu-latest')}}
261261
env:
262262
COMPILE_GO: "True"
263263
run: |
264264
pip install 'grpcio-tools==1.44.0' 'pybindgen==0.22.0'
265265
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26.0
266266
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0
267-
- name: Install dist
268-
if: ${{ matrix.from-source }}
267+
pip install dist/*tar.gz
268+
- name: Install dist w/o go
269+
if: ${{ matrix.from-source && matrix.python-version == '3.10' && matrix.os == 'macos-10.15'}}
269270
run: pip install dist/*tar.gz
270271
- name: Install OS X dependencies
271272
if: matrix.os == 'macos-10.15'

0 commit comments

Comments
 (0)