CI tests / Python upgrade #20
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
| # Copyright 2026 Google LLC | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: CI - CPU ASAN Linux x86_64 -> Linux x86_64 tests. Min LLVM/sysroot tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| issues: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| # Don't cancel in-progress jobs for main branch | |
| cancel-in-progress: ${{ github.ref != 'main' }} | |
| jobs: | |
| run-tests: | |
| name: "CPU ASAN Linux x86_64 -> Linux x86_64 tests. Min LLVM/sysroot. Runner ${{ matrix.job_info.runner }}" | |
| defaults: | |
| run: | |
| # Explicitly set the shell to bash | |
| shell: bash | |
| strategy: | |
| matrix: | |
| job_info: [ | |
| { | |
| runner: "linux-x86-n2-16", | |
| container: "us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build:latest", | |
| }, | |
| ] | |
| # Use self-hosted runners. For a Linux runner, a corresponding container image used for the | |
| # workflow is required. | |
| # See go/ml-github-actions/getting_started/using_runners.md#supported-runner-scale-set. | |
| runs-on: ${{ matrix.job_info.runner }} | |
| container: | |
| image: ${{ matrix.job_info.container }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - run: echo "Building / running ASAN tests (min LLVM / sysroot)..." | |
| - run: bazel test --config=asan //cc/sanitizers/tests:all | |
| - run: echo "Bzlmod. Building / running tests (min LLVM / sysroot)..." | |
| - run: bazel test --config=asan --config=bzlmod //cc/sanitizers/tests:all |