Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4 - Rework code coverage and re enable in ci #1619

Merged
merged 4 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ jobs:
docker run --rm -itd -p 5555:5555 rigetti/quilc -R
docker run --rm -itd -p 5000:5000 rigetti/qvm -S
poetry run make test
- name: Report Coverage
if: matrix.python-version == '3.11'
uses: orgoro/[email protected]
with:
coverageFile: coverage.xml
thresholdAll: 0.87
thresholdNew: 0.9
thresholdModified: 0.9
token: ${{ secrets.PAT }}

test-e2e:
name: Test e2e QVM
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
README.rst
docs/source/changes.rst
docs/source/apidocs/
coverage.xml

# Created by https://www.gitignore.io/api/python,osx,pycharm

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ install:
.PHONY: test
test:
poetry install --extras latex
pytest -v --runslow --cov=pyquil test/unit
pytest -v --runslow --cov=pyquil --cov-report xml:coverage.xml test/unit

.PHONY: test-fast
test-fast:
Expand Down
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ PyQuil: Quantum programming in Python

[![binder](https://mybinder.org/badge_logo.svg)][binder]
[![docs][docs-badge]][docs-repo]
[![coverage][coverage-badge]][coverage-repo]
[![docker][docker-badge]][docker-repo]
[![pepy][pepy-badge]][pepy-repo]
[![pypi][pypi-badge]][pypi-repo]
Expand Down Expand Up @@ -181,8 +180,6 @@ PyQuil is licensed under the
[conda-forge-repo]: https://anaconda.org/conda-forge/pyquil
[conda-rigetti-badge]: https://img.shields.io/conda/vn/rigetti/pyquil?label=conda-rigetti
[conda-rigetti-repo]: https://anaconda.org/rigetti/pyquil
[coverage-badge]: https://coveralls.io/repos/github/rigetti/pyquil/badge.svg?branch=more-badges
[coverage-repo]: https://coveralls.io/github/rigetti/pyquil?branch=more-badges
Shadow53 marked this conversation as resolved.
Show resolved Hide resolved
[docker-badge]: https://img.shields.io/docker/pulls/rigetti/forest
[docker-repo]: https://hub.docker.com/r/rigetti/forest
[docs-badge]: https://readthedocs.org/projects/pyquil/badge/?version=latest
Expand Down