From 94d261272b7cb3839b493d70156a3e2003c070f6 Mon Sep 17 00:00:00 2001 From: James Douglass Date: Tue, 28 May 2024 11:28:02 -0700 Subject: [PATCH] Elevating warnings to errors to catch sdist build issues. RE:#1581 --- .github/workflows/build-and-test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 8ab0b72188..1b8b5469ff 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -178,7 +178,9 @@ jobs: # computer is guaranteed to have cython available at build # time. Thus, it is no longer necessary to distribute the # .cpp files in addition to the .pyx files. - python -m build --sdist + # + # Elevating any python warnings to errors to catch build issues ASAP. + python -W error -m build --sdist - name: Install from source distribution run : |