File tree 3 files changed +48
-0
lines changed
3 files changed +48
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: TPU Integration Test
2
2
on :
3
3
workflow_call :
4
4
inputs :
5
+ torch-commit :
6
+ required : false
7
+ type : string
8
+ description : torch-commit
5
9
timeout-minutes :
6
10
required : false
7
11
type : number
Original file line number Diff line number Diff line change @@ -125,6 +125,16 @@ jobs:
125
125
has_code_changes : ${{ needs.check_code_changes.outputs.has_code_changes }}
126
126
if : github.event_name == 'push' || github.event_name == 'pull_request'
127
127
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
+
128
138
push-docs :
129
139
name : " Build docs"
130
140
uses : ./.github/workflows/_docs.yml
You can’t perform that action at this time.
0 commit comments