From b57b51bc25fed96f2b604488a1ea58528a124afc Mon Sep 17 00:00:00 2001 From: "Matthias C. M. Troffaes" Date: Tue, 10 Sep 2024 14:54:34 +0100 Subject: [PATCH] Check wheel files. --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c0e0ad..ae7c26a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -143,7 +143,9 @@ jobs: cd wheel wheel unpack ((Get-ChildItem -Path . -Filter *.whl)[0].Name) ls -r . - # TODO check that wheel contains no .c, .pyx, or .pxi files + If (((Get-ChildItem -Path . -Recurse -Include ("*.pyx", "*.pxi", "*.c"))).Length -Ne 0) { + throw "Wheel contains .pyx, .pxi, or .c files." + } cd .. - name: Upload wheel uses: actions/upload-artifact@v4