Add new CI scripts as part of JAX CI Rework #48
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Bazel GPU tests (non RBE) | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| halt-for-connection: | |
| description: 'Should this workflow run wait for a remote connection?' | |
| type: choice | |
| required: true | |
| default: 'no' | |
| options: | |
| - 'yes' | |
| - 'no' | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| runner: ["linux-x86-g2-48-l4-4gpu"] | |
| runs-on: ${{ matrix.runner }} | |
| container: | |
| image: "gcr.io/tensorflow-testing/nosla-cuda12.3-cudnn9.1-ubuntu20.04-manylinux2014-multipython:latest" | |
| env: | |
| JAXCI_CLONE_MAIN_XLA: 1 | |
| JAXCI_HERMETIC_PYTHON_VERSION: 3.11 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| # Halt for testing | |
| - name: Wait For Connection | |
| uses: google-ml-infra/actions/ci_connection@main | |
| with: | |
| halt-dispatch-input: ${{ inputs.halt-for-connection }} | |
| - name: Build jaxlib | |
| run: ./ci/build_artifacts.sh "ci/envs/build_artifacts/jaxlib.env" | |
| - name: Build jax-cuda-plugin | |
| run: ./ci/build_artifacts.sh "ci/envs/build_artifacts/jax-cuda-plugin.env" | |
| - name: Build jax-cuda-pjrt | |
| run: ./ci/build_artifacts.sh "ci/envs/build_artifacts/jax-cuda-pjrt.env" | |
| - name: Run Bazel GPU tests locally | |
| run: ./ci/run_bazel_test_gpu_non_rbe.sh |