Skip to content

Commit 9b4f650

Browse files
committed
recover setup_commands for unittests
1 parent 1444302 commit 9b4f650

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/all_tests_common.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
required: true
88
type: string
99
description: Platform name (e.g., cuda, default)
10+
setup_commands:
11+
required: false
12+
type: string
13+
default: ''
1014

1115
jobs:
1216
checkout_and_config:
@@ -94,6 +98,7 @@ jobs:
9498
runs_on: ${{ needs.checkout_and_config.outputs.runs_on }}
9599
container_volumes: ${{ needs.checkout_and_config.outputs.container_volumes }}
96100
container_options: ${{ needs.checkout_and_config.outputs.container_options }}
101+
setup_commands: ${{ inputs.setup_commands }}
97102
ignored_tests: ${{ needs.checkout_and_config.outputs.ignored_tests }}
98103
build_env: ${{ needs.checkout_and_config.outputs.build_env }}
99104

.github/workflows/unit_tests_common.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ on:
2626
required: false
2727
type: string
2828
default: ''
29+
# New input for hardware-specific initialization (e.g., conda activate)
30+
setup_commands:
31+
required: false
32+
type: string
33+
default: ''
2934
# Platform-specific build environment variables (JSON object from config)
3035
build_env:
3136
required: false

0 commit comments

Comments
 (0)