Merge branch 'master' of github.com:bagustris/nkululeko #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 Sucsess" | |
else | |
echo "Test Failed" | |
exit 1 | |
fi |