run_test.sh 411 Bytes
Newer Older
1
2
3
4
5
6
7
#!/usr/bin/env bash

set -e

eval "$(./conda/Scripts/conda.exe 'shell.bash' 'hook')"
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"

11
export PYTORCH_TEST_WITH_SLOW='1'
12
python -m torch.utils.collect_env
13
pytest --cov=torchvision --junitxml=test-results/junit.xml -v --durations 20 test --ignore=test/test_datasets_download.py