Open theo-brown opened 6 days ago
Thanks for flagging this (no pun intended). I can reproduce this. Looking into it.
I think the issue is the blanket pytest
is discovering "tests" that should not be run., for example the config files in tests/tests_data/*.py are not actually tests.
The list of tests run with GitHub Actions are described in torax/.github/workflows/pytest.yml
. See e.g. "Run core tests". For now you can try running some of those to see if they work (sim tests are recommended with sharding).
In the meantime we'll look at a solution for running the appropriate tests locally from a single command. Might be as simple as a utility script + improved documentation.
Yep, that's probably it. This wasn't stopping me from doing what I needed to do, just wanted to raise it as I caught it and it was clearly unwanted/undocumented behvaiour. The genuine tests run fine!
I have cloned a clean copy of the repo and set up my environment from scratch, installing a clean Python (3.13) and running
pip install -e .[dev]
in the torax repo.However, currently running
pytest
errors with:My environment is: