Skip to content

setup-repo: ci-python.yml does not install a packaged repo (import fails) #8

Description

@jonnyspicer

Piloting in retina-tracker (#5): assets/ci/ci-python.yml runs uv pip install --system -r requirements.txt -r requirements-dev.txt — deps only, not the local package. For a repo laid out as an importable package (pyproject with setuptools, from mypkg import ... in tests), pytest fails with ModuleNotFoundError in CI. Workaround used: pythonpath = ["."] in [tool.pytest.ini_options]. Consider adding that to the python pyproject template, or uv pip install --system -e . in the CI step. Refs #5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions