Skip to content

test-sources issue #2436

@henryiii

Description

@henryiii

Description

If you use a subdirectory, test-sources doesn't seem to work correctly. For pybind11, there's a tests/pyproject.toml that is the subdirectory being tested. This is what I would have expected to work:

 [tool.cibuildwheel]
-test-command = "pytest -o timeout=0 -p no:cacheprovider {project}/tests/test_*.py"
+test-command = "python -m pytest -o timeout=0 -p no:cacheprovider tests/test_*.py"
+test-sources = ["tests", "pyproject.toml"]

However, it seems to be running inside the subdirectory instead.

Build log

https://github.com/pybind/pybind11/actions/runs/15350529674/job/43197316393?pr=5705

CI config

pybind/pybind11#5705

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions