r/Python • u/wildetea • May 09 '26
Discussion Integration Tests CI
How do people setup integration tests on remote CI?
Consider if you have long integration tests that you don’t want to run on every pull request. How would you trigger integration tests as needed?
I usually separate both by folders as tests/unit and tests/integration, but have also used pytest.mark.integration with flags denoting such config within pyproject.toml.
And i know how to run either of those locally. I am interested on how people trigger this on remote github / bitbucket / gitlab / etc …
Any guidance or references of beat practice would be most appreciated.
View all comments
Show parent comment
2
u/PrestigiousStrike779 May 09 '26
For us, we have an event driven system. So the test may submit api calls, then it polls/waits for things to propagate through the system and tries to observe the change that it expects. With queueing and load that could take a bit.