Skip to content

Commit bcdcecd

Browse files
committed
wip: trigger torchprime
1 parent 8ddfd22 commit bcdcecd

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/_torchprime_ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: torchprime tests
2+
on:
3+
workflow_call:
4+
inputs:
5+
timeout-minutes:
6+
required: false
7+
type: number
8+
description: Timeout in minutes for the job run
9+
default: 120
10+
has_code_changes:
11+
required: false
12+
type: string
13+
description: Whether to run full workflow or not
14+
default: 'true'
15+
jobs:
16+
torchprime-e2e-test:
17+
name: Run torchprime E2E tests
18+
timeout-minutes: ${{ inputs.timeout-minutes }}
19+
runs-on: ubuntu-22.04
20+
steps:
21+
- name: Checkout actions
22+
if: inputs.has_code_changes == 'true'
23+
uses: actions/checkout@v4
24+
with:
25+
sparse-checkout: |
26+
.github/workflows/setup
27+
path: .actions
28+
- uses: convictional/[email protected]
29+
with:
30+
owner: AI-Hypercomputer
31+
repo: torchprime
32+
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN_FOR_TRIGGERING_TORCHPRIME }}
33+
workflow_file_name: e2e_test.yml
34+
ref: main

.github/workflows/_tpu_ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: TPU Integration Test
22
on:
33
workflow_call:
44
inputs:
5+
torch-commit:
6+
required: false
7+
type: string
8+
description: torch-commit
59
timeout-minutes:
610
required: false
711
type: number

.github/workflows/build_and_test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ jobs:
125125
has_code_changes: ${{ needs.check_code_changes.outputs.has_code_changes }}
126126
if: github.event_name == 'push' || github.event_name == 'pull_request'
127127

128+
test-torchprime:
129+
name: "torchprime tests"
130+
uses: ./.github/workflows/_torchprime_ci.yml
131+
# needs: [build-torch-xla, check_code_changes]
132+
needs: [check_code_changes]
133+
with:
134+
timeout-minutes: 100
135+
has_code_changes: ${{ needs.check_code_changes.outputs.has_code_changes }}
136+
if: github.event_name == 'push' || github.event_name == 'pull_request'
137+
128138
push-docs:
129139
name: "Build docs"
130140
uses: ./.github/workflows/_docs.yml

0 commit comments

Comments
 (0)