Skip to content

Merge branch 'main' of github.com:felixbur/nkululeko into main #22

Merge branch 'main' of github.com:felixbur/nkululeko into main

Merge branch 'main' of github.com:felixbur/nkululeko into main #22

name: Run nkululeko tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
sudo apt-get -y install sox libportaudio2
# python -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 .
cd data/emodb
wget https://zenodo.org/record/7447302/files/emodb.zip
unzip emodb.zip
cd ../..
# python -m nkululeko.nkululeko --config tests/exp_emodb_os_xgb.ini
- name: Run tests
run: |
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