Skip to content

Commit 7066989

Browse files
committed
chore: run pip check as part of tests
1 parent d7a1255 commit 7066989

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
run: pip install $(ls sdist/*.tar.gz)[test] -Ccmake.define.BUILD_CMAKE_FROM_SOURCE=OFF
131131

132132
- name: Test installed SDist
133-
run: pytest ./tests
133+
run: pip check && pytest ./tests
134134

135135
check_dist:
136136
name: Check dist

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ manylinux-x86_64-image = "manylinux2010"
9999
manylinux-i686-image = "manylinux2010"
100100
build-frontend = "pip"
101101
environment = { LDFLAGS = "-static-libstdc++" }
102+
test-command = ["pip check", "pytest {project}/tests"]
102103

103104
[[tool.cibuildwheel.overrides]]
104105
select = "*-musllinux_*"
@@ -107,6 +108,7 @@ environment = { LDFLAGS = "-static-libstdc++ -static-libgcc" }
107108
[[tool.cibuildwheel.overrides]]
108109
select = "*-musllinux_s390x"
109110
build-frontend = "pip"
111+
test-command = ["pip check", "pytest {project}/tests"]
110112

111113

112114
[tool.pytest.ini_options]

0 commit comments

Comments
 (0)