Minor fixes.

This commit is contained in:
Fangjun Kuang 2021-11-17 17:03:25 +08:00
parent d1f27b8d64
commit db13384fdd
3 changed files with 9 additions and 6 deletions

View File

@ -31,8 +31,9 @@ jobs:
matrix: matrix:
os: [ubuntu-18.04] os: [ubuntu-18.04]
python-version: [3.6, 3.7, 3.8, 3.9] python-version: [3.6, 3.7, 3.8, 3.9]
torch: ["1.8.1"] torch: ["1.10.0"]
k2-version: ["1.9.dev20210919"] torchaudio: ["0.10.0"]
k2-version: ["1.9.dev20211101"]
fail-fast: false fail-fast: false
@ -49,7 +50,7 @@ jobs:
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python3 -m pip install --upgrade pip pytest python3 -m pip install --upgrade pip pytest
pip install torch==${{ matrix.torch }}+cpu -f https://download.pytorch.org/whl/torch_stable.html pip install torch==${{ matrix.torch }}+cpu torchaudio==${{ matrix.torchaudio }}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
pip install k2==${{ matrix.k2-version }}+cpu.torch${{ matrix.torch }} -f https://k2-fsa.org/nightly/ pip install k2==${{ matrix.k2-version }}+cpu.torch${{ matrix.torch }} -f https://k2-fsa.org/nightly/
python3 -m pip install git+https://github.com/lhotse-speech/lhotse python3 -m pip install git+https://github.com/lhotse-speech/lhotse

View File

@ -33,8 +33,9 @@ jobs:
# TODO: enable macOS for CPU testing # TODO: enable macOS for CPU testing
os: [ubuntu-18.04] os: [ubuntu-18.04]
python-version: [3.8] python-version: [3.8]
torch: ["1.8.1"] torch: ["1.10.0"]
k2-version: ["1.9.dev20210919"] torchaudio: ["0.10.0"]
k2-version: ["1.9.dev20211101"]
fail-fast: false fail-fast: false
steps: steps:
@ -57,6 +58,7 @@ jobs:
- name: Install Python dependencies - name: Install Python dependencies
run: | run: |
python3 -m pip install -U pip python3 -m pip install -U pip
pip install torch==${{ matrix.torch }}+cpu torchaudio==${{ matrix.torchaudio }}+cpu -f https://download.pytorch.org/whl/cpu/torch_stable.html
pip install k2==${{ matrix.k2-version }}+cpu.torch${{ matrix.torch }} -f https://k2-fsa.org/nightly/ pip install k2==${{ matrix.k2-version }}+cpu.torch${{ matrix.torch }} -f https://k2-fsa.org/nightly/
python3 -m pip install git+https://github.com/lhotse-speech/lhotse python3 -m pip install git+https://github.com/lhotse-speech/lhotse

View File

@ -38,7 +38,7 @@ jobs:
k2-version: ["1.9.dev20211101"] k2-version: ["1.9.dev20211101"]
exclude: exclude:
- torch: "1.8.0" - torch: "1.8.0"
torchaudio: "0.10.0+cpu" torchaudio: "0.10.0"
- torch: "1.10.0" - torch: "1.10.0"
torchaudio: "0.8.0" torchaudio: "0.8.0"