diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 285a484..e9a1e9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -75,4 +75,9 @@ 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 + 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)