Skip to content

Commit bd0f8c1

Browse files
authored
Merge pull request #81 from google-ml-infra/quoct-add-cpu-actions
Add initial tests for CPU runners
2 parents 014817b + 458d8f2 commit bd0f8c1

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/actionlint.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
self-hosted-runner:
33
labels:
44
- "windows-x86-n2-16"
5-
- "linux-x86-n2-16"
5+
- "linux-x86-n2-16"
6+
- "linux-arm64-c4a-16"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CPU End-to-End Test
2+
3+
on:
4+
workflow_dispatch: # Allows manual triggering or via Github API
5+
inputs:
6+
triggering_job_id:
7+
description: 'ID of the Kokoro job that triggered this workflow'
8+
required: false
9+
schedule:
10+
- cron: '0 9 * * *' # (UTC 9am everyday, and it corresponds to 2 am PDT everyday.)
11+
12+
permissions: {}
13+
14+
jobs:
15+
test-runner:
16+
strategy:
17+
matrix:
18+
runner: ["linux-x86-n2-16", "linux-arm64-c4a-16", "windows-x86-n2-16"]
19+
runs-on: ${{ matrix.runner }}
20+
container: ${{ (contains(matrix.runner, 'linux-x86') && 'us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build:latest') ||
21+
(contains(matrix.runner, 'linux-arm64') && 'us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build-arm64:latest') ||
22+
(contains(matrix.runner, 'windows-x86') && null) }}
23+
steps:
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
25+
with:
26+
persist-credentials: false
27+
- name: Simulate running a job on ${{ matrix.runner }}
28+
run: |
29+
echo "Starting a job on runner: ${{ matrix.runner }}..."
30+
sleep 30
31+
echo "Job finished on runner: ${{ matrix.runner }}."

0 commit comments

Comments
 (0)