Skip to content

Commit 3c8d24f

Browse files
YoricRoland Guichard
andauthored
[CI] Let's add badges (#112)
--------- Co-authored-by: Roland Guichard <roland.guichard@pasqal.com>
1 parent 54643f5 commit 3c8d24f

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ jobs:
3737
run: |
3838
hatch -v run test
3939
hatch -v run test_readme
40-
- name: Upload coverage data
41-
uses: actions/upload-artifact@v4
40+
- name: Upload coverage reports to Codecov
41+
uses: codecov/codecov-action@v5
4242
with:
43-
name: "coverage-data"
44-
path: .coverage.*
45-
if-no-files-found: ignore
43+
token: ${{ secrets.CODECOV_TOKEN }}
4644

4745
test_doc:
4846
name: Test that we can build the docs

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[![PyPI version](https://badge.fury.io/py/quantum-evolution-kernel.svg)](https://pypi.org/project/quantum-evolution-kernel/)
2+
[![Tests](https://github.com/pasqal-io/quantum-evolution-kernel/actions/workflows/test.yml/badge.svg)](https://github.com/pasqal-io/quantum-evolution-kernel/actions/workflows/test.yml)
3+
![Coverage](https://img.shields.io/codecov/c/github/pasqal-io/quantum-evolution-kernel?style=flat-square)
4+
15
# Quantum Evolution Kernel
26

37

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ dependencies = [
7575

7676
[tool.hatch.envs.default.scripts]
7777
before_tests = "python scripts/before_tests.py"
78-
test = "pytest -n auto --cov-report=term-missing --cov-config=pyproject.toml --cov=qek --cov=tests --markdown-docs {args}"
78+
test = "pytest -n auto --cov-report=xml --cov-config=pyproject.toml --cov=qek --cov=tests --markdown-docs {args}"
7979
test_readme = "pytest --markdown-docs README.md docs/"
8080

8181
[tool.pytest.ini_options]
8282
testpaths = ["tests"]
83-
addopts = """-vvv --cov-report=term-missing --cov-config=pyproject.toml --cov=qek --cov=tests --markdown-docs"""
83+
addopts = """-vvv --cov-report=xml --cov-config=pyproject.toml --cov=qek --cov=tests --markdown-docs"""
8484
xfail_strict = true
8585
filterwarnings = [
8686
"ignore:Call to deprecated create function FieldDescriptor",

0 commit comments

Comments
 (0)