Skip to content

add ini file for gh actions #5

add ini file for gh actions

add ini file for gh actions #5

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.7'
- name: Install dependencies
run: |
sudo apt-get -y install libsndfile1 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