Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
08bc392
ci: add Codecov integration for code coverage tracking
Mar 19, 2026
ac5368b
ci: run prepare-test-reports on push to main
Mar 19, 2026
99cd69d
ci: simplify Codecov integration to single Java version
Mar 19, 2026
1087cf4
ci: restore PR-only condition for prepare-test-reports
Mar 19, 2026
04f125d
ci: add back Java version matrix for coverage reports
Mar 19, 2026
c266842
refactor: address PR review feedback for codecov configuration
Mar 21, 2026
b6c82fe
fix: add header and footer to codecov layout and remove stray comment
Mar 21, 2026
5c347f7
build: pin codecov-action to specific SHA
Mar 21, 2026
94eea2f
refactor: remove unnecessary carryforward flags configuration
Mar 21, 2026
f6d1d29
fix: improve codecov upload token handling and add guard condition
Mar 21, 2026
4d4a436
ci: run codecov upload on push to main branch
Mar 21, 2026
6aae592
feat: add per-project coverage tracking for main modules
Mar 21, 2026
1af0c33
docs: add per-module README files with codecov badges
Mar 21, 2026
2124796
Merge branch 'main' into feature/codecov-integration-199
rkmangal23 Mar 24, 2026
45c216f
ci: Add new paths for docling-testcontainers and version tests in cod…
edeandrea Mar 24, 2026
fb6b1a6
Merge branch 'main' into feature/codecov-integration-199
edeandrea Mar 24, 2026
abfcb45
docs: Add coverage sections and Codecov badges for Testcontainers and…
edeandrea Mar 24, 2026
f9ca2be
Merge remote-tracking branch 'rkmangal23/feature/codecov-integration-…
edeandrea Mar 24, 2026
70d999b
ci: Fix Codecov upload conditional in build workflow
edeandrea Mar 24, 2026
ca85554
ci: Fix Codecov upload conditional in build workflow
edeandrea Mar 24, 2026
49b2f2f
chore: trigger CI
edeandrea Mar 25, 2026
978bb6e
chore: trigger CI
edeandrea Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Codecov configuration for docling-java
# See: https://docs.codecov.com/docs/codecov-yaml

coverage:
range: 70..100
status:
project:
default:
target: auto
threshold: 1%
if_not_found: success
docling-core:
target: auto
threshold: 1%
paths:
- "docling-core/src/main/java/**"
if_not_found: success
docling-serve-api:
target: auto
threshold: 1%
paths:
- "docling-serve/docling-serve-api/src/main/java/**"
if_not_found: success
docling-serve-client:
target: auto
threshold: 1%
paths:
- "docling-serve/docling-serve-client/src/main/java/**"
if_not_found: success
docling-testcontainers:
target: auto
threshold: 1%
paths:
- "docling-testcontainers/src/main/java/**"
if_not_found: success
docling-version-tests:
target: auto
threshold: 1%
paths:
- "docling/testing/docling-version-tests/src/main/java/**"
if_not_found: success
comment:
layout: "header,diff,flags,tree,footer"
behavior: default
require_changes: false
ignore:
- "**/*Tests.java"
- "**/*Test.java"
- "**/test/**"
- "docs/**"
- "buildSrc/**"
- "docling-testcontainers/**"
- "docling-testing/**"
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:

prepare-test-reports:
runs-on: ubuntu-latest
if: always() && (github.event_name == 'pull_request')
if: always() && (github.event_name == 'pull_request' || github.event_name == 'push')
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -107,6 +107,18 @@ jobs:
- name: Create aggregated test report
run: ./gradlew --no-daemon -Pjava.version=${{ matrix.java }} :test-report-aggregation:check

- name: Upload coverage to Codecov
if: github.repository == 'docling-project/docling-java' && env.CODECOV_TOKEN != ''
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./test-report-aggregation/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
flags: java${{ matrix.java }}
name: codecov-java${{ matrix.java }}
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}

- name: Prepare build reports
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is the repository for Docling Java, a Java API for using [Docling](https://
[![docling-serve-client version](https://img.shields.io/maven-central/v/ai.docling/docling-serve-client?label=docling-serve-client)](https://docling-project.github.io/docling-java/dev/docling-serve/serve-client/)
[![docling-testcontainers version](https://img.shields.io/maven-central/v/ai.docling/docling-testcontainers?label=docling-testcontainers)](https://docling-project.github.io/docling-java/dev/testcontainers/)
[![License MIT](https://img.shields.io/github/license/docling-project/docling-java)](https://opensource.org/licenses/MIT)
[![codecov](https://codecov.io/gh/docling-project/docling-java/branch/main/graph/badge.svg)](https://codecov.io/gh/docling-project/docling-java)
[![Discord](https://img.shields.io/discord/1399788921306746971?color=6A7EC2&logo=discord&logoColor=ffffff)](https://docling.ai/discord)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/11397/badge)](https://www.bestpractices.dev/projects/11397)

Expand Down
9 changes: 9 additions & 0 deletions docling-core/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Docling Core

[![codecov](https://codecov.io/gh/docling-project/docling-java/branch/main/graph/badge.svg?flag=docling-core)](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-core)

Core module for Docling Java.

## Coverage

View detailed coverage reports for this module on [Codecov](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-core).
9 changes: 9 additions & 0 deletions docling-serve/docling-serve-api/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Docling Serve API

[![codecov](https://codecov.io/gh/docling-project/docling-java/branch/main/graph/badge.svg?flag=docling-serve-api)](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-serve/docling-serve-api)

API module for Docling Serve.

## Coverage

View detailed coverage reports for this module on [Codecov](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-serve/docling-serve-api).
9 changes: 9 additions & 0 deletions docling-serve/docling-serve-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Docling Serve Client

[![codecov](https://codecov.io/gh/docling-project/docling-java/branch/main/graph/badge.svg?flag=docling-serve-client)](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-serve/docling-serve-client)

Client module for Docling Serve.

## Coverage

View detailed coverage reports for this module on [Codecov](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-serve/docling-serve-client).
9 changes: 9 additions & 0 deletions docling-testcontainers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Docling Testcontainers

[![codecov](https://codecov.io/gh/docling-project/docling-java/branch/main/graph/badge.svg?flag=docling-testcontainers)](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-testcontainers)

Testcontainers module for Docling Java.

## Coverage

View detailed coverage reports for this module on [Codecov](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-testcontainers).
6 changes: 6 additions & 0 deletions docling-testing/docling-version-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Docling Version Tests

[![codecov](https://codecov.io/gh/docling-project/docling-java/branch/main/graph/badge.svg?flag=docling-version-tests)](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-testing/docling-version-tests)

A [Quarkus](https://quarkus.io)-based command-line application for automated compatibility testing of the [`docling-serve-api`](../../docling-serve/docling-serve-api) client library against multiple versions of the [Docling Serve](https://github.com/docling-project/docling-serve) container image.

## Overview
Expand Down Expand Up @@ -232,6 +234,10 @@ Example `results.md` excerpt:
| v1.12.0 | ❌ FAILURE | [Click for run details](#v1.12.0-details) |
```

## Coverage

View detailed coverage reports for this module on [Codecov](https://codecov.io/gh/docling-project/docling-java/tree/main/docling-testing/docling-version-tests).

## Development

### Project Structure
Expand Down