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.
2 parents c6b0673 + 201d76c commit bbb0e1cCopy full SHA for bbb0e1c
action.yml
@@ -71,7 +71,16 @@ runs:
71
run: python -m build --wheel .
72
if: ${{ inputs.pure_python_wheel == 'true' }}
73
74
- # TODO: check that the resulting wheel is indeed pure Python
+ - 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' }}
84
85
- name: Test pure Python wheel distribution
86
shell: bash
0 commit comments