Skip to content

Commit

Permalink
Enable coverage badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland committed Jan 16, 2025
1 parent 56a402b commit db32a5b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ concurrency:
jobs:

test_qadence_ubuntu:
name: Qadence (ubuntu)
name: Qadence2-IR (ubuntu)
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout Qadence
- name: Checkout Qadence2-IR
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand All @@ -36,13 +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
include-hidden-files: true
if-no-files-found: ignore
token: ${{ secrets.CODECOV_TOKEN }}
slug: pasqal-io/qadence2-ir

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 IR specifies an intermediate representation for Qadence 2. Front-ends, like [Qadence 2 Expressions](https://github.com/pasqal-io/qadence2-expressions), can compile to the IR and backends, like [Pulser](http://github.com/pasqal-io/pulser) or [PyQTorch](https://github.com/pasqal-io/pyqtorch) can be targeted from the IR using [Qadence 2 Platforms](https://github.com/pasqal-io/qadence-platforms).

![Coverage](https://img.shields.io/codecov/c/github/pasqal-io/qadence2-ir?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 @@ -60,11 +60,11 @@ dependencies = [
]

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

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

0 comments on commit db32a5b

Please sign in to comment.