Skip to content

Add badges to README and update workflow#69

Merged
astoeriko merged 3 commits into
developfrom
36-add-badges
Jul 23, 2026
Merged

Add badges to README and update workflow#69
astoeriko merged 3 commits into
developfrom
36-add-badges

Conversation

@edvinskis

@edvinskis edvinskis commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

This pull request adds status badges. The main changes include updating the coverage workflow to automatically generate and commit a coverage badge, and adding several informative badges to the README.md.

CI/CD changes:

  • Updated .github/workflows/coverage.yml to grant write permissions, enabling the workflow to commit generated badges back to the repository.
  • Modified the coverage workflow to:
    • Use genbadge for generating a coverage badge from the coverage XML report.
    • Commit and push the updated coverage badge (badges/coverage-badge.svg) automatically on push events.

README changes:

  • Added several status badges to the top of README.md, including PyPI version, supported Python versions, test status, coverage, license, and documentation links.

Closes:

edvinskis and others added 3 commits July 20, 2026 15:52
Merge `develop` into `36-add-badges`
Update CI workflow to generate and persist a coverage badge. Adds write permission for repository contents, installs genbadge, outputs an XML coverage report (reports/coverage/coverage.xml), generates badges/coverage-badge.svg, and commits/pushes the badge back to the repo on push events (uses a bot user and commits with "[skip ci]"). This keeps the coverage badge up-to-date from the workflow run.
@edvinskis
edvinskis marked this pull request as ready for review July 20, 2026 14:34
@edvinskis
edvinskis requested a review from astoeriko July 20, 2026 14:35
Comment thread README.md
# Reactix – Simulating 1-D reactive transport with differentiable models in JAX

[![PyPI](https://img.shields.io/pypi/v/reactix)](https://pypi.org/project/reactix/)
[![Python](https://img.shields.io/pypi/pyversions/reactix)](https://pypi.org/project/reactix/)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This badge for the Python version shows "missing" when rendered (on the 36-add-badges branch):

Image

Where is the information about supported versions read from? What do we need to do to get the correct versions to show?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intentional. The supported Python versions are read from your package metadata once published to PyPI. To get the correct versions to show, we need to make sure that the pyproject.toml is set correctly and that a release is published to PyPI. Also, the coverage badge will render correctly once pushed to develop.

@astoeriko
astoeriko merged commit 444352b into develop Jul 23, 2026
@astoeriko
astoeriko deleted the 36-add-badges branch July 23, 2026 08:10
@astoeriko astoeriko mentioned this pull request Jul 23, 2026
@edvinskis

Copy link
Copy Markdown
Collaborator Author

Note: moved to a simplified workflow with Codecov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants