Merge pull request #2347 from f4str/hf-demo-notebooks #8
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: CI Lingvo | |
on: | |
# Run on manual trigger | |
workflow_dispatch: | |
# Run on pull requests | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
# Run on merge queue | |
merge_group: | |
# Run when pushing to main or dev branches | |
push: | |
branches: | |
- main | |
- dev* | |
# Run scheduled CI flow daily | |
schedule: | |
- cron: '0 8 * * 0' | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: TensorFlow+Lingvo 2.1.0v1 (Keras 2.3.1 Python 3.6) | |
framework: tensorflow2v1 | |
python: 3.6 | |
tensorflow: 2.1.0 | |
tf_version: v2 | |
keras: 2.3.1 | |
lingvo: 0.6.4 | |
name: Run ${{ matrix.name }} Tests | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Pre-install Lingvo ASR | |
# scipy beyond 1.6.0 is not available on Python 3.6, therefore we adapt the installation of requirements_test.txt | |
run: | | |
sudo apt-get update | |
sudo apt-get -y -q install ffmpeg libavcodec-extra | |
python -m pip install --upgrade pip setuptools wheel | |
pip install -q -r <(sed '/^scipy/d;/^matplotlib/d;/^pandas/d;/^statsmodels/d;/^numba/d;/^jax/d;/^h5py/d;/^Pillow/d;/^pytest/d;/^pytest-mock/d;/^torch/d;/^torchaudio/d;/^torchvision/d;/^xgboost/d;/^requests/d;/^tensorflow/d;/^keras/d;/^kornia/d;/^librosa/d;/^tqdm/d;/^timm/d;/^catboost/d' requirements_test.txt) | |
pip install scipy==1.5.4 | |
pip install matplotlib==3.3.4 | |
pip install pandas==1.1.5 | |
pip install statsmodels==0.12.2 | |
pip install numba==0.53.1 | |
pip install tensorflow==${{ matrix.tensorflow }} | |
pip install keras==${{ matrix.keras }} | |
pip install lingvo==${{ matrix.lingvo }} | |
pip install tensorflow-addons==0.9.1 | |
pip install model-pruning-google-research==0.0.3 | |
pip install h5py==2.10.0 | |
pip install pytest~=7.0.1 | |
pip install pytest-flake8~=1.1.0 | |
pip install pytest-mock | |
pip install pytest-cov~=3.0.0 | |
pip install torch==1.10.2+cpu --find-links https://download.pytorch.org/whl/cpu/torch_stable.html | |
pip install torchaudio==0.10.2+cpu --find-links https://download.pytorch.org/whl/cpu/torch_stable.html | |
pip install torchvision==0.11.3+cpu --find-links https://download.pytorch.org/whl/cpu/torch_stable.html | |
pip install xgboost==1.5.2 | |
pip install requests==2.27.1 | |
pip install kornia==0.6.8 | |
pip install librosa==0.9.2 | |
pip install tqdm==4.64.1 | |
pip install catboost==1.1.1 | |
pip list | |
- name: Run ${{ matrix.name }} Tests | |
run: pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/test_tensorflow_lingvo.py --framework=${{ matrix.framework }} --durations=0 | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true |