Skip to content

Commit 2fa0247

Browse files
Fix CI coverage upload
1 parent 9dcfca3 commit 2fa0247

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@ jobs:
1212
- uses: actions/setup-python@v5
1313
with:
1414
python-version: "3.11"
15-
- run: python -m pip install --upgrade pip pytest
16-
- run: python -m pytest -q
15+
- name: Install dependencies
16+
run: |
17+
python -m pip install --upgrade pip
18+
python -m pip install -r kll_sketch/requirements-test.txt
19+
- name: Run tests with coverage
20+
run: python -m pytest --cov=kll_sketch --cov-report=term-missing --cov-report=xml kll_sketch/tests
1721
- name: Upload coverage reports to Codecov
1822
uses: codecov/codecov-action@v5
1923
with:

kll_sketch/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test = [
3333
]
3434

3535
[tool.pytest.ini_options]
36-
addopts = "--strict-config --strict-markers --cov=kll_sketch --cov-report=term-missing"
36+
addopts = "--strict-config --strict-markers --cov=kll_sketch --cov-report=term-missing --cov-report=xml"
3737
testpaths = ["kll_sketch/tests"]
3838
filterwarnings = [
3939
"error",

0 commit comments

Comments
 (0)