Test GitHub app #43
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: CI - Bazel CPU tests | |
| on: | |
| 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' | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| - 'release/**' | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| # Don't cancel in-progress jobs for main/release branches. | |
| cancel-in-progress: ${{ !contains(github.ref, 'release/') && github.ref != 'main' }} | |
| jobs: | |
| run_tests: | |
| if: github.event.repository.fork == false | |
| uses: ./.github/workflows/bazel_cpu.yml | |
| # Begin Presubmit Naming Check - name modification requires internal check to be updated | |
| strategy: | |
| matrix: | |
| python: ["3.11", "3.14"] | |
| runner: ["linux-x86-n4-16", "linux-arm64-c4a-16"] | |
| enable-x64: [1, 0] | |
| exclude: | |
| # Exclude x64=1 on the oldest Python and x64=0 on the newest Python. As long as we have | |
| # coverage for one of each, we don't need to run both. | |
| - python: "3.11" | |
| enable-x64: 1 | |
| - python: "3.14" | |
| enable-x64: 0 | |
| # Only test a single Python version on Arm64 as we don't run the tests. | |
| - python: "3.11" | |
| runner: "linux-arm64-c4a-16" | |
| name: "Bazel CPU ${{ (contains(matrix.runner, 'linux-arm64') && 'build only' || 'tests') }}" | |
| # End Presubmit Naming Check github-cpu-presubmits | |
| with: | |
| runner: ${{ matrix.runner }} | |
| python: ${{ matrix.python }} | |
| halt-for-connection: ${{ inputs.halt-for-connection }} | |
| enable-x64: ${{ matrix.enable-x64 }} | |
| build_jaxlib: 'true' | |
| build_jax: 'true' |