Skip to content

Commit 717a62f

Browse files
committed
chore: bump version to 0.1.2, add coverage config and CI integration
1 parent e7389a3 commit 717a62f

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,14 @@ jobs:
2020
run: |
2121
python -m pip install --upgrade pip
2222
pip install -e ".[dev,pandas]"
23-
- name: Run tests
24-
run: pytest tests/ -v
23+
- name: Run tests with coverage
24+
run: pytest tests/ -v --cov=excel_dbapi --cov-report=xml --cov-report=term-missing
25+
- name: Upload coverage to Codecov
26+
if: matrix.python-version == '3.12'
27+
uses: codecov/codecov-action@v5
28+
with:
29+
files: coverage.xml
30+
fail_ci_if_error: false
2531
- name: Run ruff
2632
run: ruff check src/
2733
- name: Run ruff format check

pyproject.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "excel-dbapi"
7-
version = "0.1.1"
7+
version = "0.1.2"
88
description = "PEP 249 compliant DB-API driver for Excel files"
99
readme = { file = "README.md", content-type = "text/markdown" }
1010
license = "MIT"
@@ -56,3 +56,15 @@ strict = true
5656

5757
[tool.pytest.ini_options]
5858
pythonpath = ["src"]
59+
60+
[tool.coverage.run]
61+
source = ["excel_dbapi"]
62+
branch = true
63+
64+
[tool.coverage.report]
65+
exclude_lines = [
66+
"pragma: no cover",
67+
"if TYPE_CHECKING:",
68+
"if __name__",
69+
"@overload",
70+
]

src/excel_dbapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
apilevel = "2.0"
2727
threadsafety = 1
2828
paramstyle = "qmark"
29-
__version__ = "0.1.1"
29+
__version__ = "0.1.2"
3030

3131

3232
def connect(

0 commit comments

Comments
 (0)