11name : Run Pytest CPU tests (resuable workflow)
22
33on :
4- pull_request :
5- branches :
6- - main
4+ # pull_request:
5+ # branches:
6+ # - main
7+ workflow_dispatch :
8+ inputs :
9+ halt-for-connection :
10+ description : ' Should this workflow run wait for a remote connection?'
11+ type : choice
12+ required : true
13+ default : ' no'
14+ options :
15+ - ' yes'
716
817jobs :
918 build_jaxlib_artifacts :
@@ -22,32 +31,28 @@ jobs:
2231 python : ["3.10"]
2332
2433 runs-on : ${{ matrix.runner }}
25- container : ${{ (contains(matrix.runner, 'linux-x86') && 'gcr.io /tensorflow-testing/nosla-cuda12.3-cudnn9.1-ubuntu20.04-manylinux2014-multipython :latest') ||
34+ container : ${{ (contains(matrix.runner, 'linux-x86') && 'us-central1-docker.pkg.dev /tensorflow-sigs/tensorflow/ml-build :latest') ||
2635 (contains(matrix.runner, 'linux-arm64') && 'us-central1-docker.pkg.dev/tensorflow-sigs/tensorflow/linux-arm64-arc-container:latest') ||
2736 (contains(matrix.runner, 'windows-x86') && null) }}
2837
2938 env :
30- # Disable running `run_docker_container.sh`. JAX self-hosted runners already run in a Docker
31- # container.
32- JAXCI_RUN_DOCKER_CONTAINER : 0
33- # Use RBE to build the artifacts where possible (Linux x86 and Windows).
34- JAXCI_BUILD_ARTIFACT_WITH_RBE : 1
35- # Setup the test environment (disable x64 mode and clone XLA at HEAD)
36- JAXCI_SETUP_TEST_ENVIRONMENT : 1
39+ JAXCI_CLONE_MAIN_XLA : 1
3740 JAXCI_HERMETIC_PYTHON_VERSION : ${{ matrix.python }}
3841
3942 steps :
4043 - uses : actions/checkout@v3
4144 # Halt for testing
4245 - name : Wait For Connection
43- uses : ./actions/ci_connection/
46+ uses : google-ml-infra/actions/ci_connection@main
47+ with :
48+ halt-dispatch-input : ${{ inputs.halt-for-connection }}
4449 - name : Install pytest
4550 env :
4651 JAXCI_PYTHON : python${{ matrix.python }}
4752 run : $JAXCI_PYTHON -m pip install pytest
4853 - name : Install dependencies
4954 env :
5055 JAXCI_PYTHON : python${{ matrix.python }}
51- run : $JAXCI_PYTHON -m pip install --upgrade numpy=="2.0.0" scipy=="1.13.1" wheel build pytest-xdist absl-py opt-einsum colorama portpicker matplotlib 'importlib_metadata>=4.6' hypothesis flatbuffers filelock
56+ run : $JAXCI_PYTHON -m pip install -r build/requirements.in
5257 - name : Run Pytest CPU tests
5358 run : ./ci/run_pytest.sh "ci/envs/run_tests/pytest_cpu"
0 commit comments