Skip to content

Test against matrix of dependencies #111

@JCZuurmond

Description

@JCZuurmond

Problem statement

Pytester is intended as a library used by other projects. Therefore, we prefer to keep the dependency version constrain broad so that the projects have more room to choose the versions they desire. Currently we test pytester for differen python versions, but we do not test pytester for different dependency version:

Solution

Use tox to test pytester against a matrix of dependency versions. (Tox is a commonly used tool for this.) For starters, let's test against a matrix of the Databricks Python SDK as that is experimental. The lsql is a good second one as that is probably less stable than pytest itself. Finally we can test against different pytest versions, though, I assume that library to be quite stable, especially for the entrypoints we use (fixture)

pytester/pyproject.toml

Lines 50 to 54 in 979d22d

dependencies = [
"databricks-sdk>=0.40,<0.42",
"databricks-labs-lsql>=0.10",
"pytest>=8.3",
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency fileinternalpythonPull requests that update Python code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions