We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1377b85 commit 201d76cCopy full SHA for 201d76c
action.yml
@@ -66,7 +66,16 @@ runs:
66
run: python -m build --wheel .
67
if: ${{ inputs.pure_python_wheel == 'true' }}
68
69
- # TODO: check that the resulting wheel is indeed pure Python
+ - name: Verify that one pure Python wheel was built
70
+ shell: bash
71
+ run: |
72
+ ls -1 dist/*
73
+ if [ $(ls -1 dist/*.whl 2>/dev/null | wc -l) != 1 ] ||
74
+ [ $(ls -1 dist/*none-any.whl 2>/dev/null | wc -l) != 1 ]; then
75
+ echo "::error ::Build failed because package is not pure Python."
76
+ exit 1
77
+ fi
78
+ if: ${{ inputs.pure_python_wheel == 'true' }}
79
80
- name: Test pure Python wheel distribution
81
shell: bash
0 commit comments