diff --git a/.github/workflows/test_fast.yml b/.github/workflows/test_fast.yml index 3e18c51d..31b7dd95 100644 --- a/.github/workflows/test_fast.yml +++ b/.github/workflows/test_fast.yml @@ -36,6 +36,10 @@ jobs: - name: Run fast tests run: | hatch -v run test -m "not slow" + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} publish: name: Publish to PyPI diff --git a/README.md b/README.md index 71bb1d54..10e80e54 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ programs** with tunable qubit interactions and arbitrary register topologies rea [![Documentation](https://github.com/pasqal-io/qadence/actions/workflows/build_docs.yml/badge.svg)](https://pasqal-io.github.io/qadence/latest) [![Pypi](https://badge.fury.io/py/qadence.svg)](https://pypi.org/project/qadence/) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -![Coverage](https://img.shields.io/endpoint?url=https://pasqal-io.github.io/qadence/coverage.json) +![Coverage](https://img.shields.io/codecov/c/github/pasqal-io/qadence?style=flat-square) ## Feature highlights diff --git a/pyproject.toml b/pyproject.toml index 4eb8d1ea..a03e2148 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -107,7 +107,7 @@ dependencies = [ features = ["pulser", "visualization", "horqrux", "mlflow"] [tool.hatch.envs.default.scripts] -test = "pytest -n auto --cov-report=json --cov-config=pyproject.toml --cov=qadence --cov=tests --ignore=./tests/test_examples.py {args}" +test = "pytest -n auto --cov-report=xml --cov-config=pyproject.toml --cov=qadence --cov=tests --ignore=./tests/test_examples.py {args}" test-examples = "pytest ./tests/test_examples.py {args}" no-cov = "cov --no-cov {args}" test-docs = "mkdocs build --clean --strict"