Skip to content

Commit

Permalink
Merge pull request #59 from Chia-Network/20231204-fix-wheel-target
Browse files Browse the repository at this point in the history
Use the existing built wheel in the python tests.
  • Loading branch information
prozacchiwawa authored Dec 4, 2023
2 parents a86cdbd + 06d4eaf commit 3c8d9cb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ jobs:
run: |
. ./activate
cargo build
pip install .
# This finds and installs a compatible wheel from the target directory on linux.
# We do it here as a hedge against changes in the python environment that might
# have happened due to pulling in the trunk versions of other packages that
# depend on clvm_tools_rs.
python support/wheelname.py
pip install clvm_rs
pip install clvm_tools
cd resources/tests && python test_clvm_step.py && python mandelbrot-cldb.py
Expand Down Expand Up @@ -281,6 +285,13 @@ jobs:
name: wheels
path: ./target/wheels/

- name: Check for incompatible wheels and bail if found
run: |
set -e
# Check for a wheel with -linux_x86_64 platform tag, which will
# fail uploading to pypi.
find target -name \*-linux_x86_64.whl -exec /bin/false '{}' '+'
- name: Publish distribution to PyPI
if: env.RELEASE == 'true'
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit 3c8d9cb

Please sign in to comment.