File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44
55[project ]
66name = " excel-dbapi"
7- version = " 0.1.1 "
7+ version = " 0.1.2 "
88description = " PEP 249 compliant DB-API driver for Excel files"
99readme = { file = " README.md" , content-type = " text/markdown" }
1010license = " MIT"
@@ -56,3 +56,15 @@ strict = true
5656
5757[tool .pytest .ini_options ]
5858pythonpath = [" 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+ ]
Original file line number Diff line number Diff line change 2626apilevel = "2.0"
2727threadsafety = 1
2828paramstyle = "qmark"
29- __version__ = "0.1.1 "
29+ __version__ = "0.1.2 "
3030
3131
3232def connect (
You can’t perform that action at this time.
0 commit comments