From 3cabc34cd785f0e0c4079637e672d65c57017253 Mon Sep 17 00:00:00 2001 From: RolandMacDoland <9250798+RolandMacDoland@users.noreply.github.com> Date: Thu, 5 Dec 2024 15:07:04 +0000 Subject: [PATCH] [Docs] Test coverage and badge (#626) --- .github/workflows/test_fast.yml | 6 ------ README.md | 2 ++ pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test_fast.yml b/.github/workflows/test_fast.yml index 6d0bd420..3e18c51d 100644 --- a/.github/workflows/test_fast.yml +++ b/.github/workflows/test_fast.yml @@ -36,12 +36,6 @@ jobs: - name: Run fast tests run: | hatch -v run test -m "not slow" - - name: Upload coverage data - uses: actions/upload-artifact@v4 - with: - name: "coverage-data" - path: .coverage.* - if-no-files-found: ignore publish: name: Publish to PyPI diff --git a/README.md b/README.md index d6dab2e1..71bb1d54 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ 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) + ## Feature highlights diff --git a/pyproject.toml b/pyproject.toml index 97792916..4eb8d1ea 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 lcov --cov-config=pyproject.toml --cov=qadence --cov=tests --ignore=./tests/test_examples.py {args}" +test = "pytest -n auto --cov-report=json --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"