Skip to content

Commit a1c086f

Browse files
committed
Put back rest of dependencies, and run tests
1 parent b95e3c8 commit a1c086f

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

.github/scripts/unittest-linux/install.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,23 @@ python setup.py install
8888
conda install -y "ffmpeg<5"
8989
python -c "import torch; import torchaudio; import torchcodec; print(torch.__version__, torchaudio.__version__, torchcodec.__version__)"
9090

91-
# printf "* Installing test tools\n"
92-
# NUMBA_DEV_CHANNEL=""
93-
# if [[ "$(python --version)" = *3.9* || "$(python --version)" = *3.10* ]]; then
94-
# # Numba isn't available for Python 3.9 and 3.10 except on the numba dev channel and building from source fails
95-
# # See https://github.com/librosa/librosa/issues/1270#issuecomment-759065048
96-
# NUMBA_DEV_CHANNEL="-c numba/label/dev"
97-
# fi
98-
# (
99-
# set -x
100-
# conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} sox libvorbis parameterized 'requests>=2.20' 'ffmpeg>=6,<7'
101-
# pip install kaldi-io SoundFile librosa coverage pytest pytest-cov scipy expecttest unidecode inflect Pillow sentencepiece pytorch-lightning 'protobuf<4.21.0' demucs tinytag pyroomacoustics flashlight-text git+https://github.com/kpu/kenlm
102-
103-
# # TODO: might be better to fix the single call to `pip install` above
104-
# pip install "pillow<10.0" "scipy<1.10" "numpy<2.0"
105-
# )
106-
# # Install fairseq
107-
# git clone https://github.com/pytorch/fairseq
108-
# cd fairseq
109-
# git checkout e47a4c8
110-
# pip install .
91+
printf "* Installing test tools\n"
92+
NUMBA_DEV_CHANNEL=""
93+
if [[ "$(python --version)" = *3.9* || "$(python --version)" = *3.10* ]]; then
94+
# Numba isn't available for Python 3.9 and 3.10 except on the numba dev channel and building from source fails
95+
# See https://github.com/librosa/librosa/issues/1270#issuecomment-759065048
96+
NUMBA_DEV_CHANNEL="-c numba/label/dev"
97+
fi
98+
(
99+
set -x
100+
conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} sox libvorbis parameterized 'requests>=2.20'
101+
pip install kaldi-io SoundFile librosa coverage pytest pytest-cov scipy expecttest unidecode inflect Pillow sentencepiece pytorch-lightning 'protobuf<4.21.0' demucs tinytag pyroomacoustics flashlight-text git+https://github.com/kpu/kenlm
102+
103+
# TODO: might be better to fix the single call to `pip install` above
104+
pip install "pillow<10.0" "scipy<1.10" "numpy<2.0"
105+
)
106+
# Install fairseq
107+
git clone https://github.com/pytorch/fairseq
108+
cd fairseq
109+
git checkout e47a4c8
110+
pip install .

.github/workflows/unittest-linux-cpu.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ jobs:
6565
./.github/scripts/unittest-linux/install.sh
6666
echo '::endgroup::'
6767
68-
# echo '::group::Run Tests'
69-
# ./.github/scripts/unittest-linux/run_test.sh
70-
# echo '::endgroup::'
68+
echo '::group::Run Tests'
69+
./.github/scripts/unittest-linux/run_test.sh
70+
echo '::endgroup::'

0 commit comments

Comments
 (0)