add linting exception to constants.py #208
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@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 |