Skip to content

Commit

Permalink
Enable coverage badge. (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland authored Jan 16, 2025
1 parent 5b1de24 commit c61e84d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/run-tests-and-mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
- name: Perform unit tests
run: |
python -m hatch -e tests run test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: pasqal-io/horqrux
- name: Test doc building
run: |
python -m hatch -e docs run mkdocs build --clean --strict
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Linting / Tests/ Documentation](https://github.com/pasqal-io/horqrux/actions/workflows/run-tests-and-mypy.yml/badge.svg)](https://github.com/pasqal-io/horqrux/actions/workflows/run-tests-and-mypy.yml)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Pypi](https://badge.fury.io/py/horqrux.svg)](https://pypi.org/project/horqrux/)
![Coverage](https://img.shields.io/codecov/c/github/pasqal-io/horqrux?style=flat-square)

`horqrux` is a [JAX](https://jax.readthedocs.io/en/latest/)-based state vector and density matrix simulator designed for quantum machine learning and acts as a backend for [`Qadence`](https://github.com/pasqal-io/qadence), a digital-analog quantum programming interface.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ features = [
]

[tool.hatch.envs.tests.scripts]
test = "pytest -n auto {args} && hatch -e docs run docs:build"
test = "pytest -n auto --cov-report=xml --cov-config=pyproject.toml --cov=horqrux --cov=tests {args}"

[tool.hatch.envs.docs]
dependencies = [
Expand Down

0 comments on commit c61e84d

Please sign in to comment.