Skip to content

Commit 70ecfcb

Browse files
committed
Add pytest-cov to produce coverage report
1 parent 64ac56d commit 70ecfcb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ jobs:
1919
run: |
2020
python -m pip install --upgrade pip
2121
pip install -r requirements.txt
22+
pip install coveralls
2223
- name: Run unit tests
2324
run: |
24-
python -m pytest
25+
python -m pytest --cov=iamport tests
2526
- name: Run convention tests
2627
run: |
2728
python -m flake8 iamport tests --ignore E203,W503,W504

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
requests==2.26.0
22
pytest==6.2.4
3+
pytest-cov==2.12.1
34
flake8==3.9.2
45
isort==5.9.3
56
mypy==0.910
6-
types-requests==2.25.6
7+
types-requests==2.25.6

0 commit comments

Comments
 (0)