From 63f0cc3de4757f60b594935bb8e8b0a11d815832 Mon Sep 17 00:00:00 2001 From: mayeut Date: Tue, 15 Oct 2024 15:09:38 +0200 Subject: [PATCH] chore: run `pip check` as part of tests --- .github/workflows/build.yml | 2 +- pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f7d5f3..1ddc318 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -132,7 +132,7 @@ jobs: run: pip install $(ls sdist/*.tar.gz)[test] -Ccmake.define.BUILD_CMAKE_FROM_SOURCE=OFF - name: Test installed SDist - run: pytest ./tests + run: pip check && pytest ./tests check_dist: name: Check dist diff --git a/pyproject.toml b/pyproject.toml index 2bc9884..cee25bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -105,6 +105,8 @@ manylinux-x86_64-image = "manylinux2010" manylinux-i686-image = "manylinux2010" build-frontend = "pip" environment = { LDFLAGS = "-static-libstdc++" } +inherit.test-command = "prepend" +test-command = "pip check" [[tool.cibuildwheel.overrides]] select = "*-musllinux_*" @@ -113,6 +115,8 @@ environment = { LDFLAGS = "-static-libstdc++ -static-libgcc" } [[tool.cibuildwheel.overrides]] select = "*-musllinux_s390x" build-frontend = "pip" +inherit.test-command = "prepend" +test-command = "pip check" [tool.pytest.ini_options]