Skip to content

CI tests / Python upgrade #26

CI tests / Python upgrade

CI tests / Python upgrade #26

# 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 Linux x86_64 -> Linux x86_64 tests. Max LLVM/sysroot
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 Linux x86_64 -> Linux x86_64 tests. Max 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 tests..."
- run: bazel test --repo_env=LLVM_VERSION=21 --repo_env=SYSROOT_DIST=linux_glibc_2_35 //cc/tests/cpu:all
- run: echo "Bzlmod. Building / running tests..."
- run: bazel test --repo_env=LLVM_VERSION=21 --repo_env=SYSROOT_DIST=linux_glibc_2_35 --config=bzlmod //cc/tests/cpu:all