Unverified Commit f177a8d5 authored by moto's avatar moto Committed by GitHub
Browse files

Remove codecov and store coverage on CCI (#778)

parent d707b6cd
...@@ -424,12 +424,10 @@ jobs: ...@@ -424,12 +424,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_linux_gpu: unittest_linux_gpu:
<<: *binary_common <<: *binary_common
machine: machine:
...@@ -456,11 +454,10 @@ jobs: ...@@ -456,11 +454,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post Process
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_windows_cpu: unittest_windows_cpu:
<<: *binary_common <<: *binary_common
...@@ -479,11 +476,10 @@ jobs: ...@@ -479,11 +476,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_windows_gpu: unittest_windows_gpu:
<<: *binary_common <<: *binary_common
...@@ -505,11 +501,10 @@ jobs: ...@@ -505,11 +501,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_macos_cpu: unittest_macos_cpu:
<<: *binary_common <<: *binary_common
...@@ -532,11 +527,10 @@ jobs: ...@@ -532,11 +527,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
stylecheck: stylecheck:
<<: *binary_common <<: *binary_common
......
...@@ -424,12 +424,10 @@ jobs: ...@@ -424,12 +424,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_linux_gpu: unittest_linux_gpu:
<<: *binary_common <<: *binary_common
machine: machine:
...@@ -456,11 +454,10 @@ jobs: ...@@ -456,11 +454,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post Process
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_windows_cpu: unittest_windows_cpu:
<<: *binary_common <<: *binary_common
...@@ -479,11 +476,10 @@ jobs: ...@@ -479,11 +476,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_windows_gpu: unittest_windows_gpu:
<<: *binary_common <<: *binary_common
...@@ -505,11 +501,10 @@ jobs: ...@@ -505,11 +501,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
unittest_macos_cpu: unittest_macos_cpu:
<<: *binary_common <<: *binary_common
...@@ -532,11 +527,10 @@ jobs: ...@@ -532,11 +527,10 @@ jobs:
- run: - run:
name: Run tests name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results: - store_test_results:
path: test-results path: test-results
- store_artifacts:
path: test/htmlcov
stylecheck: stylecheck:
<<: *binary_common <<: *binary_common
......
...@@ -56,5 +56,5 @@ fi ...@@ -56,5 +56,5 @@ fi
( (
set -x set -x
conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} 'librosa>=0.8.0' parameterized 'requests>=2.20' conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} 'librosa>=0.8.0' parameterized 'requests>=2.20'
pip install kaldi-io SoundFile codecov pytest pytest-cov scipy pip install kaldi-io SoundFile coverage pytest pytest-cov scipy
) )
#!/usr/bin/env bash
set -e
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env
codecov
...@@ -24,3 +24,4 @@ declare -a args=( ...@@ -24,3 +24,4 @@ declare -a args=(
cd test cd test
pytest "${args[@]}" torchaudio_unittest pytest "${args[@]}" torchaudio_unittest
coverage html
...@@ -44,5 +44,5 @@ fi ...@@ -44,5 +44,5 @@ fi
( (
set -x set -x
conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} 'librosa>=0.8.0' parameterized 'requests>=2.20' conda install -y -c conda-forge ${NUMBA_DEV_CHANNEL} 'librosa>=0.8.0' parameterized 'requests>=2.20'
pip install kaldi-io SoundFile codecov pytest pytest-cov scipy pip install kaldi-io SoundFile coverage pytest pytest-cov scipy
) )
#!/usr/bin/env bash
set -e
eval "$(./conda/Scripts/conda.exe 'shell.bash' 'hook')"
conda activate ./env
codecov
...@@ -8,3 +8,4 @@ conda activate ./env ...@@ -8,3 +8,4 @@ conda activate ./env
python -m torch.utils.collect_env python -m torch.utils.collect_env
cd test cd test
pytest --cov=torchaudio --junitxml=../test-results/junit.xml -v --durations 20 torchaudio_unittest pytest --cov=torchaudio --junitxml=../test-results/junit.xml -v --durations 20 torchaudio_unittest
coverage html
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment