Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ jobs:
if: always()
run: python -m coverage xml -o coverage.xml

# Single-matrix upload (informational). Matrix jobs still gate with --fail-under=60.
- name: Upload coverage to Codecov
if: always() && matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
flags: unittests
name: ubuntu-3.12
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}

# CIP-0001 R11: optional MPI parity while mpi4py support still exists.
mpi:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ Deep GP

The Python Implementation of Deep Gaussian Processes

| Branch | Tests | Coverage |
| --- | --- | --- |
| `main` | [![Tests](https://github.com/SheffieldML/PyDeepGP/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/SheffieldML/PyDeepGP/actions/workflows/tests.yml?query=branch%3Amain) | [![codecov](https://codecov.io/gh/SheffieldML/PyDeepGP/branch/main/graph/badge.svg)](https://codecov.io/gh/SheffieldML/PyDeepGP/branch/main) |

Currently implemented models are

* Deep GPs
Expand All @@ -12,6 +16,7 @@ Testing
-------

GitHub Actions runs the unit tests (with coverage) on pull requests and pushes to `main`.
The Ubuntu / Python 3.12 job uploads ``coverage.xml`` to [Codecov](https://codecov.io).

Requires **Python >=3.11** when using GPy 1.15+.

Expand Down
28 changes: 28 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
codecov:
branch: main

coverage:
precision: 2
round: down
range: "40...100"

status:
# CI already enforces --fail-under=60 on the maintained surface (.coveragerc).
# Codecov statuses are informational so PRs stay mergeable while comments still flag gaps.
project:
default:
target: auto
informational: true
if_no_uploads: success

patch:
default:
target: 50%
informational: true
if_no_uploads: success

changes: false

comment:
layout: "header, diff, flags"
behavior: default
Loading