Skip to content

Commit f9d99d9

Browse files
Wael JabeurWael Jabeur
authored andcommitted
adjust cov reporting in python
1 parent f14f175 commit f9d99d9

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ jobs:
8080
run: |
8181
cd python
8282
source venv/bin/activate
83-
pytest --cov=src tests
83+
pytest --cov=src --cov-report=xml tests
8484
- name: Upload coverage reports to Codecov
8585
uses: codecov/codecov-action@v5
8686
with:
8787
token: ${{ secrets.CODECOV_TOKEN }}
8888
slug: wael-jaber/design_patterns
89-
files: python/.coverage
89+
files: python/coverage.xml
9090
flags: python
9191
name: python-coverage

python/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ __pycache__/
55
.mypy_cache/
66
.pytest_cache/
77
.coverage
8+
coverage.xml
89

python/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ lint:
88
mypy src tests
99

1010
test:
11-
pytest --cov=src tests
11+
pytest --cov=src --cov-report=xml tests
1212

1313
clean:
1414
rm -rf __pycache__ .mypy_cache .pytest_cache

0 commit comments

Comments
 (0)