gpflux.experiment_support.ci_utils#
This module contains a set of utilities used in experiments and notebooks.
Module Contents#
- is_continuous_integration() bool [source]#
Return
True
if the code is running on continuous integration (CI) machines, otherwiseFalse
.- ..note:: This check is based on the
CI
environment variable, which is set toTrue
by GitHub actions, CircleCI, and Jenkins. This function may not work as expected under other CI frameworks.
- ..note:: This check is based on the
- notebook_niter(n: int, test_n: int = 2) int [source]#
Return a typically smaller number of iterations
test_n
if code is running on CI machines (seeis_continuous_integration()
), otherwise returnn
.