MCPcopy Index your code
hub / github.com/python/cpython / ci

Function ci

Platforms/Apple/__main__.py:867–888  ·  view source on GitHub ↗

The implementation of the "ci" command. In "Fast" mode, this compiles the build python, and the simulator for the build machine's architecture; and runs the test suite with `--fast-ci` configuration. In "Slow" mode, it compiles the build python, plus all candidate architectures

(context: argparse.Namespace)

Source from the content-addressed store, hash-verified

865
866
867def ci(context: argparse.Namespace) -> None:
868 """The implementation of the "ci" command.
869
870 In "Fast" mode, this compiles the build python, and the simulator for the
871 build machine's architecture; and runs the test suite with `--fast-ci`
872 configuration.
873
874 In "Slow" mode, it compiles the build python, plus all candidate
875 architectures (both device and simulator); then runs the test suite with
876 `--slow-ci` configuration.
877 """
878 clean(context, "all")
879 if context.ci_mode == "slow":
880 # In slow mode, build and test the full XCframework
881 build(context, host="all")
882 test(context, host="all")
883 else:
884 # In fast mode, just build the simulator platform.
885 sim_host = apple_sim_host(context.platform)
886 build(context, host="build")
887 build(context, host=sim_host)
888 test(context, host=sim_host)
889
890
891def parse_args() -> argparse.Namespace:

Callers

nothing calls this directly

Calls 4

apple_sim_hostFunction · 0.85
cleanFunction · 0.70
buildFunction · 0.70
testFunction · 0.70

Tested by

no test coverage detected