Skip to content

Commit

Permalink
ci(wheels): use "oiiotool --help" as a test command.
Browse files Browse the repository at this point in the history
Add a new test command in the pyproject.toml cibw options. This command runs after wheels are built with `cibuildwheel`, and checks if CLI Python scripts can import the OpenImageIO module, invoke CLI binary executables, and load all shared libraries. It uses 'oiiotool --help' to output a list of dependencies with which OIIO was compiled. If this works, everything else should check out too (pending CI workflow results)...

Signed-off-by: Zach Lewis <[email protected]>
  • Loading branch information
zachlewis committed Sep 13, 2024
1 parent 641e5ad commit c9d8178
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ skip = [
# This may be a bug in repairwheel (or auditwheel)?
"*musllinux*",
]
# If the following command returns code 0, we know the CLI Python scripts
# are able to import the OpenImageIO module, which is able to invoke the
# CLI binary executables and find and load all shared libraries. The
# '--help' flag outputs a list of dependencies with which OIIO was compiled.
test-command = "oiiotool --help"

[tool.cibuildwheel.macos.environment]
# Optimize for size (not speed)
Expand Down

0 comments on commit c9d8178

Please sign in to comment.