Skip to content

Commit d555844

Browse files
authored
ci: Rework code coverage and re-enable in ci (#1619)
* ci: Add coverage step * prefix action version with v * update README.md * overall coverage shouldn't go down
1 parent 00eaf2c commit d555844

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/test.yml

+9
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,15 @@ jobs:
129129
docker run --rm -itd -p 5555:5555 rigetti/quilc -R
130130
docker run --rm -itd -p 5000:5000 rigetti/qvm -S
131131
poetry run make test
132+
- name: Report Coverage
133+
if: matrix.python-version == '3.11'
134+
uses: orgoro/[email protected]
135+
with:
136+
coverageFile: coverage.xml
137+
thresholdAll: 0.87
138+
thresholdNew: 0.9
139+
thresholdModified: 0.9
140+
token: ${{ secrets.PAT }}
132141

133142
test-e2e:
134143
name: Test e2e QVM

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
README.rst
22
docs/source/changes.rst
33
docs/source/apidocs/
4+
coverage.xml
45

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

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ install:
6363
.PHONY: test
6464
test:
6565
poetry install --extras latex
66-
pytest -v --runslow --cov=pyquil test/unit
66+
pytest -v --runslow --cov=pyquil --cov-report xml:coverage.xml test/unit
6767

6868
.PHONY: test-fast
6969
test-fast:

README.md

-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ PyQuil: Quantum programming in Python
33

44
[![binder](https://mybinder.org/badge_logo.svg)][binder]
55
[![docs][docs-badge]][docs-repo]
6-
[![coverage][coverage-badge]][coverage-repo]
76
[![docker][docker-badge]][docker-repo]
87
[![pepy][pepy-badge]][pepy-repo]
98
[![pypi][pypi-badge]][pypi-repo]
@@ -181,8 +180,6 @@ PyQuil is licensed under the
181180
[conda-forge-repo]: https://anaconda.org/conda-forge/pyquil
182181
[conda-rigetti-badge]: https://img.shields.io/conda/vn/rigetti/pyquil?label=conda-rigetti
183182
[conda-rigetti-repo]: https://anaconda.org/rigetti/pyquil
184-
[coverage-badge]: https://coveralls.io/repos/github/rigetti/pyquil/badge.svg?branch=more-badges
185-
[coverage-repo]: https://coveralls.io/github/rigetti/pyquil?branch=more-badges
186183
[docker-badge]: https://img.shields.io/docker/pulls/rigetti/forest
187184
[docker-repo]: https://hub.docker.com/r/rigetti/forest
188185
[docs-badge]: https://readthedocs.org/projects/pyquil/badge/?version=latest

0 commit comments

Comments
 (0)