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

3
set -euxo pipefail
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
moto's avatar
moto committed
12
13
env | grep TORCHAUDIO || true

14
cd test
moto's avatar
moto committed
15
pytest --cov=torchaudio --junitxml=${RUNNER_TEST_RESULTS_DIR}/junit.xml -v --durations 20 torchaudio_unittest
16
coverage html