From 42c428ab85ae7c9fad83dca63dcc53d59a0baea7 Mon Sep 17 00:00:00 2001 From: anna-charlotte Date: Thu, 9 Apr 2026 16:37:46 +0200 Subject: [PATCH 1/2] docs: add code coverage --- .github/workflows/ci.yml | 5 +++++ README.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 285a484..81a4656 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,3 +76,8 @@ jobs: - name: Run pytest run: poetry run pytest --cov=src/sr_smiles --cov-report=term-missing + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 141b7b6..d4d965c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ [![Python versions](https://img.shields.io/badge/python-%3E%3D3.9-blue)](https://pypi.org/project/sr-smiles) [![License](https://img.shields.io/github/license/heid-lab/sr-smiles)](https://github.com/heid-lab/sr-smiles/blob/main/LICENSE) [![Test](https://github.com/heid-lab/sr-smiles/actions/workflows/ci.yml/badge.svg)](https://github.com/heid-lab/sr-smiles/actions) - +[![Coverage](https://codecov.io/gh/heid-lab/sr-smiles/branch/main/graph/badge.svg)](https://codecov.io/gh/heid-lab/sr-smiles) [Overview](#overview) | [Installation](#installation) | [Usage](#usage) | [Contributing](#contributing) | [Citation](#citation) | [References](#references) From a261312c7805795a01e6542d3a69fd6cd6bced3a Mon Sep 17 00:00:00 2001 From: anna-charlotte Date: Fri, 10 Apr 2026 11:18:13 +0200 Subject: [PATCH 2/2] docs: write codecov to xml file --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81a4656..e9a1e9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,7 +75,7 @@ jobs: run: poetry install --with dev --extras "rxnmapper" - name: Run pytest - run: poetry run pytest --cov=src/sr_smiles --cov-report=term-missing + run: poetry run pytest --cov=src/sr_smiles --cov-report=term-missing --cov-report=xml - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v5