-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (47 loc) · 1.64 KB
/
basic_tests_for_aud_csv.yaml
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
name: Run nkululeko tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
# cache: 'pip' # caching pip dependencies, causing error due to too large
- name: Install dependencies
run: |
sudo apt-get -y install sox libportaudio2
# python3 -m pip install --upgrade pip
pip install -r requirements.txt
# pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install --editable .
# python -m nkululeko.nkululeko --config tests/exp_emodb_os_xgb.ini
- name: Run audformat-emodb-os-svm
run: |
cd data/emodb
wget https://zenodo.org/record/7447302/files/emodb.zip
unzip emodb.zip
cd ../..
python3 -m nkululeko.nkululeko --config data/emodb/exp_os_svm.ini > output.txt
if grep -q "DONE" output.txt; then
echo "Test Success"
else
echo "Test Failed"
exit 1
fi
- name: Run csv-ravdess-praat-xgb
run: |
cd data/ravdess
# wget https://zenodo.org/record/1188976/files/Audio_Speech_Actors_01-24.zip
wget https://zenodo.org/records/11063852/files/Audio_Speech_Actors_01-24_16k.zip
unzip Audio_Speech_Actors_01-24_16k.zip
cd ../..
python3 -m nkululeko.nkululeko --config data/ravdess/exp_praat_xgb.ini > output1.txt
if grep -q "DONE" output1.txt; then
echo "Test Success"
else
echo "Test Failed"
exit 1
fi