Skip to content

Commit

Permalink
[Docs] Enable coverage badge. (#48)
Browse files Browse the repository at this point in the history
Enable coverage badge in README.
  • Loading branch information
RolandMacDoland authored Jan 17, 2025
1 parent 5475137 commit 7f178f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,11 @@ jobs:
- name: Run tests
run: |
hatch -v run test
- name: Upload coverage data
uses: actions/upload-artifact@v4
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
name: "coverage-data-${{ matrix.python-version }}"
path: .coverage
if-no-files-found: ignore
token: ${{ secrets.CODECOV_TOKEN }}
slug: pasqal-io/qadence2-expressions

publish:
name: Publish to PyPI
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

Qadence 2 Expressions consisting of symbolic expressions and blocks, i.e. quantum digital, analog, digital-analog and composite gates, together with their logic and engine.

![Coverage](https://img.shields.io/codecov/c/github/pasqal-io/qadence2-expressions?style=flat-square)

## Installation

!!! note
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ dependencies = [
]

[tool.hatch.envs.default.scripts]
test = "pytest -n auto --cov-config=pyproject.toml --cov=qadence2_expressions {args}"
test = "pytest -n auto --cov-report=xml --cov-config=pyproject.toml --cov=qadence2_expressions --cov=tests {args}"

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = """-vvv --cov-config=pyproject.toml --cov=qadence2_expressions"""
addopts = """-vvv"""
xfail_strict = true
filterwarnings = [
"ignore:Call to deprecated create function FieldDescriptor",
Expand Down

0 comments on commit 7f178f2

Please sign in to comment.