Skip to content

Pytest config in pyproject.toml isn't used in CI #7554

@lagru

Description

@lagru

It seems like our pytest config isn't used in our CI. E.g. look at the start of any of our "Test" workflows:

# Run the tests
(cd .. && pytest $TEST_ARGS --pyargs skimage)
++ cd ..
++ pytest --doctest-plus --cov=skimage --showlocals --pyargs skimage
============================= test session starts ==============================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
rootdir: /home/runner/work/scikit-image
plugins: localserver-0.9.0, doctestplus-1.2.1, cov-5.0.0
collected 9072 items / 14 skipped

_shared/_tempfile.py .                                                   [  0%]

Compare that to invoking pytest locally, e.g. with spin test which lists

configfile: pyproject.toml

I'm not sure why the file isn't found? The printed rootdir seems to be the root folder of our repo? Also about the purpose and effect of cd ...

I noticed this because the warning filter didn't seem to have an effect in #7353.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions