Skip to content

Commit a0bbde3

Browse files
committed
Store coverage on CCI
1 parent 131e48b commit a0bbde3

File tree

6 files changed

+34
-22
lines changed

6 files changed

+34
-22
lines changed

.circleci/config.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,13 @@ jobs:
415415
- run:
416416
name: Run tests
417417
command: .circleci/unittest/linux/scripts/run_test.sh
418+
- store_test_results:
419+
path: test-results
418420
- run:
419421
name: Post process
420422
command: .circleci/unittest/linux/scripts/post_process.sh
421-
- store_test_results:
422-
path: test-results
423-
423+
- store_artifacts:
424+
path: htmlcov
424425
unittest_linux_gpu:
425426
<<: *binary_common
426427
machine:
@@ -457,11 +458,13 @@ jobs:
457458
- run:
458459
name: Run tests
459460
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
461+
- store_test_results:
462+
path: test-results
460463
- run:
461464
name: Post Process
462465
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
463-
- store_test_results:
464-
path: test-results
466+
- store_artifacts:
467+
path: htmlcov
465468

466469
unittest_windows_cpu:
467470
<<: *binary_common
@@ -491,11 +494,13 @@ jobs:
491494
- run:
492495
name: Run tests
493496
command: .circleci/unittest/windows/scripts/run_test.sh
497+
- store_test_results:
498+
path: test-results
494499
- run:
495500
name: Post process
496501
command: .circleci/unittest/windows/scripts/post_process.sh
497-
- store_test_results:
498-
path: test-results
502+
- store_artifacts:
503+
path: htmlcov
499504

500505
unittest_windows_gpu:
501506
<<: *binary_common
@@ -527,11 +532,13 @@ jobs:
527532
- run:
528533
name: Run tests
529534
command: .circleci/unittest/windows/scripts/run_test.sh
535+
- store_test_results:
536+
path: test-results
530537
- run:
531538
name: Post process
532539
command: .circleci/unittest/windows/scripts/post_process.sh
533-
- store_test_results:
534-
path: test-results
540+
- store_artifacts:
541+
path: htmlcov
535542

536543
unittest_macos_cpu:
537544
<<: *binary_common

.circleci/config.yml.in

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,13 @@ jobs:
415415
- run:
416416
name: Run tests
417417
command: .circleci/unittest/linux/scripts/run_test.sh
418+
- store_test_results:
419+
path: test-results
418420
- run:
419421
name: Post process
420422
command: .circleci/unittest/linux/scripts/post_process.sh
421-
- store_test_results:
422-
path: test-results
423-
423+
- store_artifacts:
424+
path: htmlcov
424425
unittest_linux_gpu:
425426
<<: *binary_common
426427
machine:
@@ -457,11 +458,13 @@ jobs:
457458
- run:
458459
name: Run tests
459460
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/run_test.sh
461+
- store_test_results:
462+
path: test-results
460463
- run:
461464
name: Post Process
462465
command: docker run -t --gpus all -v $PWD:$PWD -w $PWD "${image_name}" .circleci/unittest/linux/scripts/post_process.sh
463-
- store_test_results:
464-
path: test-results
466+
- store_artifacts:
467+
path: htmlcov
465468

466469
unittest_windows_cpu:
467470
<<: *binary_common
@@ -491,11 +494,13 @@ jobs:
491494
- run:
492495
name: Run tests
493496
command: .circleci/unittest/windows/scripts/run_test.sh
497+
- store_test_results:
498+
path: test-results
494499
- run:
495500
name: Post process
496501
command: .circleci/unittest/windows/scripts/post_process.sh
497-
- store_test_results:
498-
path: test-results
502+
- store_artifacts:
503+
path: htmlcov
499504

500505
unittest_windows_gpu:
501506
<<: *binary_common
@@ -527,11 +532,13 @@ jobs:
527532
- run:
528533
name: Run tests
529534
command: .circleci/unittest/windows/scripts/run_test.sh
535+
- store_test_results:
536+
path: test-results
530537
- run:
531538
name: Post process
532539
command: .circleci/unittest/windows/scripts/post_process.sh
533-
- store_test_results:
534-
path: test-results
540+
- store_artifacts:
541+
path: htmlcov
535542

536543
unittest_macos_cpu:
537544
<<: *binary_common

.circleci/unittest/linux/scripts/environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ dependencies:
66
- numpy
77
- pytest
88
- pytest-cov
9-
- codecov
109
- librosa
1110
- llvmlite==0.31 # See https://github.com/pytorch/audio/pull/766
1211
- pip

.circleci/unittest/linux/scripts/post_process.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

8-
codecov
8+
coverage html

.circleci/unittest/windows/scripts/post_process.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -e
55
eval "$(./conda/Scripts/conda.exe 'shell.bash' 'hook')"
66
conda activate ./env
77

8-
codecov
8+
coverage html

.circleci/unittest/windows/scripts/run_test.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ conda activate ./env
77

88
python -m torch.utils.collect_env
99
pytest --cov=torchaudio --junitxml=test-results/junit.xml -v --durations 20 test
10-
flake8 torchaudio test

0 commit comments

Comments
 (0)