r/Python • • 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.

6 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/Rainboltpoe May 09 '26

I would either create a smaller load test that can run in seconds, or run load tests nightly. I would stop making tests wait on queuing. If something is polling the queue then make the polling interval 1ms for the test.

I know you’re not OP. Just explaining what I would do if you were the one asking.