Skip to content

Use pip for installing Pytest in containers #5896

Description

@brockdyer03

Current

Currently the containers used in CI testing install every package from apt or dnf, which is probably fine for most dependencies since they should ideally be compatible with what some users would use.

This has become a problem for the migration to Pytest (#5881), which generally relies on modern Pytest constructs. There have been several spots in #5894 where there is extra logic specifically for handling various Pytest versions.

That logic may be simple on the surface, but I personally have spent far, far more time and energy than I wanted to just trying to figure out which features I can use and which I can't use.

Proposed

It would be much easier to just install pytest, pytest-cov, and pytest-order with pip in the containers so that I can actually know that the version is consistent. This wouldn't necessarily affect the generality of the tests since the other Python packages are still installed via apt or dnf, and those are what the few users who are, for one reason or another, unable to use a package manager, actually care about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions