Repository navigation
My tests pass locally but fail on CI. What is different? #592
Answered
by
lumenpearson
lumenpearson
asked this question in
Q&A
|
|
Answered by
lumenpearson
Oct 17, 2026
Replies: 1 comment
|
State: main at Usually the cause is one of these, in order of frequency:
The reverse also happens. On a loaded Windows machine, On the Android side, CI also builds the release APK (R8) and runs detekt. |
0 replies
Answer selected by
lumenpearson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
State: main at
4c93edb4, 1 November 2026: v0.10.0 in progress, nothing released. The known flaky test (#355) and the number of host tests change over time; check #355 andtests/test_host_live.py.Usually the cause is one of these, in order of frequency:
pip install -e ".[dev]"alone installs the newest releases. CI installs the lock that deployments get. Reinstall the way CI does:.venv/bin/pip install -r ../requirements.txt -e ".[dev]". mypy's verdict depends on these versions too.python -m pytestinstead ofpytest. The-mform puts the current directory onsys.path. So a test that imports another test module passes locally and fails on CI at collection with…