Skip to content

Commit

Permalink
Remove codecov and store coverage on CCI (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok authored Apr 20, 2021
1 parent d707b6c commit f177a8d
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 50 deletions.
26 changes: 10 additions & 16 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results:
path: test-results

- store_artifacts:
path: test/htmlcov
unittest_linux_gpu:
<<: *binary_common
machine:
Expand All @@ -456,11 +454,10 @@ jobs:
- run:
name: Run tests
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:
path: test-results
- store_artifacts:
path: test/htmlcov

unittest_windows_cpu:
<<: *binary_common
Expand All @@ -479,11 +476,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results:
path: test-results
- store_artifacts:
path: test/htmlcov

unittest_windows_gpu:
<<: *binary_common
Expand All @@ -505,11 +501,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results:
path: test-results
- store_artifacts:
path: test/htmlcov

unittest_macos_cpu:
<<: *binary_common
Expand All @@ -532,11 +527,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results:
path: test-results
- store_artifacts:
path: test/htmlcov

stylecheck:
<<: *binary_common
Expand Down
26 changes: 10 additions & 16 deletions .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -424,12 +424,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results:
path: test-results

- store_artifacts:
path: test/htmlcov
unittest_linux_gpu:
<<: *binary_common
machine:
Expand All @@ -456,11 +454,10 @@ jobs:
- run:
name: Run tests
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:
path: test-results
- store_artifacts:
path: test/htmlcov

unittest_windows_cpu:
<<: *binary_common
Expand All @@ -479,11 +476,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results:
path: test-results
- store_artifacts:
path: test/htmlcov

unittest_windows_gpu:
<<: *binary_common
Expand All @@ -505,11 +501,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/windows/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/windows/scripts/post_process.sh
- store_test_results:
path: test-results
- store_artifacts:
path: test/htmlcov

unittest_macos_cpu:
<<: *binary_common
Expand All @@ -532,11 +527,10 @@ jobs:
- run:
name: Run tests
command: .circleci/unittest/linux/scripts/run_test.sh
- run:
name: Post process
command: .circleci/unittest/linux/scripts/post_process.sh
- store_test_results:
path: test-results
- store_artifacts:
path: test/htmlcov

stylecheck:
<<: *binary_common
Expand Down
2 changes: 1 addition & 1 deletion .circleci/unittest/linux/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ fi
(
set -x
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
)
8 changes: 0 additions & 8 deletions .circleci/unittest/linux/scripts/post_process.sh

This file was deleted.

1 change: 1 addition & 0 deletions .circleci/unittest/linux/scripts/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ declare -a args=(

cd test
pytest "${args[@]}" torchaudio_unittest
coverage html
2 changes: 1 addition & 1 deletion .circleci/unittest/windows/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ fi
(
set -x
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
)
8 changes: 0 additions & 8 deletions .circleci/unittest/windows/scripts/post_process.sh

This file was deleted.

1 change: 1 addition & 0 deletions .circleci/unittest/windows/scripts/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ conda activate ./env
python -m torch.utils.collect_env
cd test
pytest --cov=torchaudio --junitxml=../test-results/junit.xml -v --durations 20 torchaudio_unittest
coverage html

0 comments on commit f177a8d

Please sign in to comment.