Skip to content

Commit

Permalink
Output lcov file to use for coverage badge.
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland committed Oct 10, 2023
1 parent f9d9944 commit 3395800
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ jobs:
- name: Run fast tests
run: |
hatch -v run test -m "not slow"
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: coverage.lcov
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ dependencies = [
features = ["all"]

[tool.hatch.envs.default.scripts]
test = "pytest --cov-report=xml --cov-config=pyproject.toml --cov=qadence --cov=tests --ignore=./tests/test_examples.py --ignore=./tests/test_notebooks.py {args}"
test = "pytest --cov-report lcov --cov-config=pyproject.toml --cov=qadence --cov=tests --ignore=./tests/test_examples.py --ignore=./tests/test_notebooks.py {args}"
test-examples = "pytest ./tests/test_examples.py {args}"
test-notebooks = "pytest ./tests/test_notebooks.py {args}"
no-cov = "cov --no-cov {args}"
Expand Down

0 comments on commit 3395800

Please sign in to comment.