-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux-python-3_13-cli-validation.yml
More file actions
129 lines (112 loc) · 4.13 KB
/
linux-python-3_13-cli-validation.yml
File metadata and controls
129 lines (112 loc) · 4.13 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Linux Python 3.13 CLI Validation
on:
workflow_call:
inputs:
run_accurate_research:
required: false
default: false
type: boolean
accurate_model_id:
required: false
default: "openai/whisper-tiny"
type: string
accurate_research_model_id:
required: false
default: "iic/emotion2vec_plus_large"
type: string
workflow_dispatch:
inputs:
run_accurate_research:
description: "Run accurate-research profile train/predict smoke."
required: true
default: false
type: boolean
accurate_model_id:
description: "Whisper model id used by accurate profile smoke."
required: true
default: "openai/whisper-tiny"
type: string
accurate_research_model_id:
description: "Model id used by accurate-research profile smoke."
required: true
default: "iic/emotion2vec_plus_large"
type: string
permissions:
contents: read
jobs:
linux-py313-profile-smoke:
runs-on: ubuntu-latest
timeout-minutes: 300
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Configure runtime directories
run: ./scripts/workflows/configure_runtime_dirs.sh
- name: Set up Python 3.13
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install uv
run: python -m pip install --upgrade pip uv
- name: Ensure ffmpeg is available
run: ./scripts/workflows/ensure_ffmpeg.sh --mode apt-install
- name: Cache uv
uses: actions/cache@v5
with:
path: ~/.cache/uv
key: uv-${{ runner.os }}-linux-py313-cli-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-linux-py313-cli-
- name: Sync validation dependencies (Python 3.13)
run: >
./scripts/workflows/sync_validation_dependencies.sh
--python 3.13
${{ inputs.run_accurate_research && '--accurate-research' || '' }}
- name: Build synthetic RAVDESS smoke dataset
run: python ./scripts/build_synthetic_ravdess_dataset.py
- name: Persist validation dataset consents
run: ./scripts/configure_validation_dataset_consents.sh --python 3.13
- name: Fast profile train and predict
run: ./scripts/workflows/run_profile_smoke.sh --python 3.13 --profile fast
- name: Medium profile train and predict
env:
SER_MODEL_FILE_NAME: ser_model_medium_linux_py313.pkl
SER_TRAINING_REPORT_FILE_NAME: training_report_medium_linux_py313.json
run: >
./scripts/workflows/run_profile_smoke.sh
--python 3.13
--uv-extra medium
--profile medium
- name: Accurate profile train and predict (compatibility smoke)
env:
SER_ACCURATE_MODEL_ID: ${{ inputs.accurate_model_id }}
WHISPER_MODEL: tiny
WHISPER_DEMUCS: "false"
WHISPER_VAD: "false"
SER_MODEL_FILE_NAME: ser_model_accurate_linux_py313.pkl
SER_TRAINING_REPORT_FILE_NAME: training_report_accurate_linux_py313.json
run: >
./scripts/workflows/run_profile_smoke.sh
--python 3.13
--uv-extra medium
--profile accurate
- name: Accurate-research profile train and predict (compatibility smoke)
if: ${{ inputs.run_accurate_research }}
env:
SER_ENABLE_RESTRICTED_BACKENDS: "true"
SER_ACCURATE_RESEARCH_MODEL_ID: ${{ inputs.accurate_research_model_id }}
SER_MODEL_FILE_NAME: ser_model_accurate_research_linux_py313.pkl
SER_TRAINING_REPORT_FILE_NAME: training_report_accurate_research_linux_py313.json
run: >
./scripts/workflows/run_profile_smoke.sh
--python 3.13
--uv-extra full
--profile accurate-research
- name: Upload validation artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: linux-python-3_13-cli-validation-artifacts
path: |
${{ runner.temp }}/ser-models/*
${{ runner.temp }}/ser-transcripts/*