Commit
Β·
b9c529a
1
Parent(s):
b4820c9
ci: add coverage reporting, caching, and badges
Browse files- Add Codecov integration for coverage tracking
- Add uv package caching for faster builds
- Add test artifact uploads
- Add CI status and coverage badges to README
- .github/workflows/ci.yml +23 -2
- README.md +3 -0
.github/workflows/ci.yml
CHANGED
|
@@ -13,6 +13,14 @@ jobs:
|
|
| 13 |
steps:
|
| 14 |
- uses: actions/checkout@v4
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
- name: Install uv
|
| 17 |
uses: astral-sh/setup-uv@v4
|
| 18 |
with:
|
|
@@ -30,5 +38,18 @@ jobs:
|
|
| 30 |
- name: Type check with mypy
|
| 31 |
run: uv run mypy src
|
| 32 |
|
| 33 |
-
- name: Run tests
|
| 34 |
-
run: uv run pytest tests/unit/ -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
steps:
|
| 14 |
- uses: actions/checkout@v4
|
| 15 |
|
| 16 |
+
- name: Cache uv packages
|
| 17 |
+
uses: actions/cache@v4
|
| 18 |
+
with:
|
| 19 |
+
path: ~/.cache/uv
|
| 20 |
+
key: ${{ runner.os }}-uv-${{ hashFiles('**/pyproject.toml') }}
|
| 21 |
+
restore-keys: |
|
| 22 |
+
${{ runner.os }}-uv-
|
| 23 |
+
|
| 24 |
- name: Install uv
|
| 25 |
uses: astral-sh/setup-uv@v4
|
| 26 |
with:
|
|
|
|
| 38 |
- name: Type check with mypy
|
| 39 |
run: uv run mypy src
|
| 40 |
|
| 41 |
+
- name: Run tests with coverage
|
| 42 |
+
run: uv run pytest tests/unit/ -v --cov=src --cov-report=xml --cov-report=term-missing
|
| 43 |
+
|
| 44 |
+
- name: Upload coverage to Codecov
|
| 45 |
+
uses: codecov/codecov-action@v4
|
| 46 |
+
with:
|
| 47 |
+
files: ./coverage.xml
|
| 48 |
+
fail_ci_if_error: false
|
| 49 |
+
|
| 50 |
+
- name: Upload test artifacts
|
| 51 |
+
if: always()
|
| 52 |
+
uses: actions/upload-artifact@v4
|
| 53 |
+
with:
|
| 54 |
+
name: test-results
|
| 55 |
+
path: coverage.xml
|
README.md
CHANGED
|
@@ -23,6 +23,9 @@ tags:
|
|
| 23 |
|
| 24 |
# DeepBoner π
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
AI-Native Sexual Health Research Agent
|
| 27 |
|
| 28 |
Deep research for sexual wellness, ED treatments, hormone therapy, libido, and reproductive health - for all genders.
|
|
|
|
| 23 |
|
| 24 |
# DeepBoner π
|
| 25 |
|
| 26 |
+
[](https://github.com/The-Obstacle-Is-The-Way/DeepBoner/actions/workflows/ci.yml)
|
| 27 |
+
[](https://codecov.io/gh/The-Obstacle-Is-The-Way/DeepBoner)
|
| 28 |
+
|
| 29 |
AI-Native Sexual Health Research Agent
|
| 30 |
|
| 31 |
Deep research for sexual wellness, ED treatments, hormone therapy, libido, and reproductive health - for all genders.
|