Skip to content

Commit 95134e4

Browse files
committed
ci: test with code coverage
A bit trivial for now, but start as we mean to go on...
1 parent 6cb3d11 commit 95134e4

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
branch = True

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@ jobs:
3838
pip install ".[ci]"
3939
- name: "Run tests"
4040
run: |
41-
pytest
41+
pytest --cov
42+
- uses: codecov/codecov-action@v3

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ classifiers = [
2424

2525
[project.optional-dependencies]
2626
dev = [
27+
"coverage>=6.2",
2728
"pytest>=7.0.1",
29+
"pytest-cov>=3.0.0",
2830
]
2931
ci = [
30-
"pytest==7.0.1",
32+
"coverage>=6.2",
33+
"pytest>=7.0.1",
34+
"pytest-cov>=3.0.0",
3135
]
3236

3337
[tool.hatch.build]

0 commit comments

Comments
 (0)