File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
.github/actions/upload-benchmark-results Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ inputs:
10
10
default : ' v3'
11
11
github-token :
12
12
default : ' '
13
+ venv :
14
+ description : ' Path to virtual environment to activate'
15
+ required : false
16
+ default : ' '
13
17
14
18
runs :
15
19
using : composite
18
22
shell : bash
19
23
run : |
20
24
set -eux
25
+
26
+ if [[ -n "${{ inputs.venv }}" ]]; then
27
+ source "${{ inputs.venv }}"
28
+ fi
21
29
python3 -mpip install boto3==1.35.33 psutil==7.0.0 pynvml==12.0.0
22
30
23
31
DEVICE_NAME=""
74
82
run : |
75
83
set -eux
76
84
85
+ if [[ -n "${{ inputs.venv }}" ]]; then
86
+ source "${{ inputs.venv }}"
87
+ fi
88
+
77
89
python3 "${GITHUB_ACTION_PATH}/../../scripts/benchmarks/gather_metadata.py" \
78
90
--schema-version "${SCHEMA_VERSION}" \
79
91
--repo "${REPO}" \
@@ -90,6 +102,10 @@ runs:
90
102
run : |
91
103
set -eux
92
104
105
+ if [[ -n "${{ inputs.venv }}" ]]; then
106
+ source "${{ inputs.venv }}"
107
+ fi
108
+
93
109
python3 "${GITHUB_ACTION_PATH}/../../scripts/benchmarks/gather_runners_info.py"
94
110
95
111
- name : Gather the dependencies information
@@ -113,6 +129,10 @@ runs:
113
129
run : |
114
130
set -eux
115
131
132
+ if [[ -n "${{ inputs.venv }}" ]]; then
133
+ source "${{ inputs.venv }}"
134
+ fi
135
+
116
136
if [[ ! -d "${BENCHMARK_RESULTS_DIR}" ]]; then
117
137
echo "${BENCHMARK_RESULTS_DIR} does not exist, skipping"
118
138
# We don't want the job to fail if the directory doesn't exist
You can’t perform that action at this time.
0 commit comments