run_test.sh 377 Bytes
Newer Older
moto's avatar
moto committed
1
2
#!/usr/bin/env bash

3
set -ex
moto's avatar
moto committed
4

5
eval "$(./conda/Scripts/conda.exe 'shell.bash' 'hook')"
moto's avatar
moto committed
6
7
conda activate ./env

8
9
10
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source "$this_dir/set_cuda_envs.sh"

moto's avatar
moto committed
11
python -m torch.utils.collect_env
12
13
cd test
pytest --cov=torchaudio --junitxml=../test-results/junit.xml -v --durations 20 torchaudio_unittest
14
coverage html