Skip to content

Commit

Permalink
fix: Sync publish and build_wheels workflow to fix verify wheel error. (
Browse files Browse the repository at this point in the history
#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>
  • Loading branch information
kevjumba authored Jun 28, 2022
1 parent ffb0892 commit b0f050a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}

build-python-wheels:
build-python-wheel:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:

verify-python-wheel:
runs-on: ${{ matrix.os }}
needs: [build-python-wheels, build-source-distribution]
needs: [build-python-wheel, build-source-distribution]
strategy:
matrix:
os: [ubuntu-latest, macos-10.15 ]
Expand Down Expand Up @@ -256,16 +256,17 @@ jobs:
cd dist/
pip install wheel
for f in *.whl; do pip install $f || true; done
- name: Install go from sdist
if: ${{ matrix.from-source }}
- name: Install dist with go
if: ${{ matrix.from-source && (matrix.python-version != '3.10' || matrix.os == 'ubuntu-latest')}}
env:
COMPILE_GO: "True"
run: |
pip install 'grpcio-tools==1.44.0' 'pybindgen==0.22.0'
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26.0
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1.0
- name: Install dist
if: ${{ matrix.from-source }}
pip install dist/*tar.gz
- name: Install dist w/o go
if: ${{ matrix.from-source && matrix.python-version == '3.10' && matrix.os == 'macos-10.15'}}
run: pip install dist/*tar.gz
- name: Install OS X dependencies
if: matrix.os == 'macos-10.15'
Expand Down

0 comments on commit b0f050a

Please sign in to comment.