Repository navigation
63 lines (54 loc) · 1.93 KB
/
Copy pathcollect-results.yml
File metadata and controls
63 lines (54 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Template - Collect Results
on:
workflow_call:
inputs:
tooling-ref:
required: true
type: string
result-prefix:
required: false
type: string
default: ''
permissions:
contents: read
jobs:
collect-results:
name: collect-results
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ inputs.tooling-ref }}
persist-credentials: false
- name: Download JSON artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: results/
pattern: ${{ inputs.result-prefix && format('{0}_*', inputs.result-prefix) || '*' }}
- name: Select Python project
run: |
python_project="$GITHUB_WORKSPACE"
if [[ -f "$python_project/inferencex-e2e/pyproject.toml" ]]; then
python_project="$python_project/inferencex-e2e"
fi
test -f "$python_project/pyproject.toml"
echo "INFERENCEX_PYTHON_PROJECT=$python_project" >> "$GITHUB_ENV"
- name: Set up uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
cache-dependency-glob: |
pyproject.toml
uv.lock
inferencex-e2e/pyproject.toml
inferencex-e2e/uv.lock
- name: Aggregate results
env:
RESULT_PREFIX: ${{ inputs.result-prefix || 'all' }}
run: |
uv run --project "$INFERENCEX_PYTHON_PROJECT" --locked python -m infx.results.collect_results results/ "${RESULT_PREFIX}"
- name: Upload aggregated results
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: results_${{ inputs.result-prefix || 'all' }}
path: agg_${{ inputs.result-prefix || 'all' }}.json