Skip to content

Commit 34d2465

Browse files
Merge pull request #9 from bin913/add_static_dispatch
Add static dispatch
2 parents 87fd108 + a139bca commit 34d2465

6 files changed

Lines changed: 1127 additions & 65 deletions

File tree

.github/workflows/backend-test.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ on:
1717
type: string
1818
default: ''
1919
test_script:
20-
description: 'Path to test script under tools/'
21-
required: true
20+
description: "Temporary parameter for alpha-ops test"
21+
required: false
2222
type: string
23+
default: ''
2324
changed_files:
2425
description: 'List of changed files in a PR'
2526
required: false
@@ -75,9 +76,19 @@ jobs:
7576
run: |
7677
bash ${{ inputs.gpu_check_script }}
7778
78-
- name: Run backend tests
79+
- name: Test alpha ops
80+
if: ${{ inputs.test_script != '' }}
7981
env:
8082
CHANGED_FILES: ${{ inputs.changed_files }}
8183
shell: bash
8284
run: |
83-
bash ${{ inputs.test_script }} ${{ inputs.vendor }}
85+
bash ${{ inputs.test_script }} ${{ inputs.vendor }} ${{ inputs.pr_id }}
86+
- name: Run backend tests
87+
if: ${{ inputs.test_script == '' }}
88+
shell: bash
89+
env:
90+
CHANGED_FILES: ${{ inputs.changed_files }}
91+
run: |
92+
source .venv/bin/activate
93+
source tools/set-env.sh ${{ inputs.vendor }}
94+
tools/run_op.sh ${{ inputs.pr_id }}

0 commit comments

Comments
 (0)