Skip to content

Merge pull request #565 from s3prl/fix-ci #99

Merge pull request #565 from s3prl/fix-ci

Merge pull request #565 from s3prl/fix-ci #99

Workflow file for this run

name: CI
on:
# Trigger the workflow on push to main or any pull request
push:
branches:
- main
pull_request:
jobs:
espnet-upstream:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: ["3.10"]
torchaudio-version: [0.13.1, 2.0.1, 2.1.2, 2.2.2, 2.3.1, 2.4.0]
# espnet use 'torchaudio.models.hubert_pretrain_model' with 'feature_grad_mult' option
# which is available after torchaudio==0.12.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libsndfile1-dev sox git git-lfs
- name: Upgrade pip and wheel
run: pip3 install --upgrade pip wheel setuptools
- name: Install dependencies for tests
run: pip3 install -r requirements/dev.txt
# This can be very helpful for debugging
# The action can create a SSH server for you to connect. After you
# log into the machine hosted by GitHub, it becomes easy to debug
# why the CI fails on a specific machine.
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Run tox for common upstream
run: |
tox -e espnet-audio${{ matrix.torchaudio-version }}