Skip to content

Commit 33cfe6d

Browse files
committed
add coverage to action
1 parent 6d23c2e commit 33cfe6d

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.coveragerc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[run]
2+
branch = true
3+
source = types_linq
4+
omit = types_linq/more_typing.py
5+
6+
[report]
7+
exclude_lines =
8+
pragma: no cover
9+
if TYPE_CHECKING:
10+
fail_under = 100

.github/workflows/pytest.yml

+22
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,25 @@ jobs:
3333
- name: Test with pytest
3434
run: |
3535
pytest
36+
37+
coverage:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- uses: actions/checkout@v2
43+
- name: Set up Python 3.8
44+
uses: actions/setup-python@v2
45+
with:
46+
python-version: 3.8
47+
- name: Install dependencies
48+
run: |
49+
python -m pip install --upgrade pip
50+
pip install pytest coverage
51+
- name: Install project
52+
run: |
53+
pip install .
54+
- name: Coverage report
55+
run: |
56+
coverage run -m pytest
57+
coverage report -m

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# types-linq
22

3-
![Python](https://img.shields.io/badge/python-3.7%2B-blue.svg) [![pypi](https://img.shields.io/pypi/v/types-linq)](https://pypi.org/project/types-linq/) [![pytest](https://github.com/cleoold/types-linq/workflows/pytest/badge.svg)](https://github.com/cleoold/types-linq/actions)
3+
![Python](https://img.shields.io/badge/python-3.7%2B-blue.svg) [![pypi](https://img.shields.io/pypi/v/types-linq)](https://pypi.org/project/types-linq/) [![pytest](https://github.com/cleoold/types-linq/workflows/pytest/badge.svg)](https://github.com/cleoold/types-linq/actions?query=workflow%3Apytest)
44

55
This is an attempt to implement linq methods seen in .NET ([link](https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable?view=net-5.0)). Currently WIP.
66

0 commit comments

Comments
 (0)