Skip to content

Commit bbb0e1c

Browse files
authored
Merge pull request #12 from ConorMacBride/verify-pure-python
Verify wheels are pure Python
2 parents c6b0673 + 201d76c commit bbb0e1c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

action.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,16 @@ runs:
7171
run: python -m build --wheel .
7272
if: ${{ inputs.pure_python_wheel == 'true' }}
7373

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

7685
- name: Test pure Python wheel distribution
7786
shell: bash

0 commit comments

Comments
 (0)