Skip to content

Commit 88a3a9d

Browse files
committed
Added coverage commands to CI
1 parent 5256371 commit 88a3a9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
- name: Lint with black
3030
run: |
3131
black --check .
32-
- name: Test with pytest
32+
- name: Test with pytest and generate coverage file
3333
run: |
34-
pytest
34+
pytest --cov=./ --cov-report=xml
3535
- name: Upload coverage to Codecov
3636
uses: codecov/codecov-action@v2

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# What packages are required for this module to be executed?
2424
REQUIRED = ["numpy", "torch", "torchaudio", "julius", "wavaugment", "torch-pitch-shift"]
25-
TEST_REQUIRED = ["pytest", "black", "librosa"]
25+
TEST_REQUIRED = ["pytest", "pytest-cov", "black", "librosa"]
2626

2727
# What packages are optional?
2828
EXTRAS = {

0 commit comments

Comments
 (0)