Skip to content

Commit

Permalink
Merge pull request #12 from ConorMacBride/verify-pure-python
Browse files Browse the repository at this point in the history
Verify wheels are pure Python
  • Loading branch information
Cadair authored Apr 8, 2022
2 parents c6b0673 + 201d76c commit bbb0e1c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,16 @@ runs:
run: python -m build --wheel .
if: ${{ inputs.pure_python_wheel == 'true' }}

# TODO: check that the resulting wheel is indeed pure Python
- name: Verify that one pure Python wheel was built
shell: bash
run: |
ls -1 dist/*
if [ $(ls -1 dist/*.whl 2>/dev/null | wc -l) != 1 ] ||
[ $(ls -1 dist/*none-any.whl 2>/dev/null | wc -l) != 1 ]; then
echo "::error ::Build failed because package is not pure Python."
exit 1
fi
if: ${{ inputs.pure_python_wheel == 'true' }}

- name: Test pure Python wheel distribution
shell: bash
Expand Down

0 comments on commit bbb0e1c

Please sign in to comment.