Skip to content

Commit 5932dbf

Browse files
committed
Commit
1 parent faf8a50 commit 5932dbf

14 files changed

Lines changed: 4113 additions & 3 deletions

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,12 @@ jobs:
7373
- name: Install dependencies
7474
run: uv sync --all-extras
7575

76-
- name: Run unit tests
77-
run: uv run pytest tests/unit/ -v
76+
- name: Run unit tests with coverage
77+
run: uv run pytest tests/unit/ -v --cov=drift --cov-report=lcov
78+
79+
- name: Upload coverage to Coveralls
80+
# if: matrix.python-version == '3.9' && github.event_name == 'push' && github.ref == 'refs/heads/main'
81+
uses: coverallsapp/github-action@v2
7882

7983
build:
8084
name: Build Package

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,7 @@ __marimo__/
224224
.DS_Store
225225

226226
# Bug tracking
227-
**/BUG_TRACKING.md
227+
**/BUG_TRACKING.md
228+
229+
# Coverage
230+
coverage.lcov

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ uv run ty check drift/ tests/ # Type check
3333
```bash
3434
uv run pytest tests/unit/ -v
3535

36+
# Run with coverage
37+
uv run pytest tests/unit/ -v --cov=drift --cov-report=term-missing
38+
3639
# Run a specific test file
3740
uv run pytest tests/unit/test_json_schema_helper.py -v
3841
uv run pytest tests/unit/test_adapters.py -v

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ dev = [
5353
"ty>=0.0.1a7",
5454
"pytest>=8.0.0,<9.0.0",
5555
"pytest-mock>=3.15.0",
56+
"pytest-cov>=7.0.0",
5657
]
5758

5859
[project.urls]

0 commit comments

Comments
 (0)