Skip to content

Commit

Permalink
infra: Enable Codecov (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
speller26 authored Jan 12, 2021
1 parent e456e97 commit d69a013
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip pytest
pip install --upgrade pip
pip install --upgrade git+https://github.com/aws/amazon-braket-schemas-python@main
pip install --upgrade git+https://github.com/aws/amazon-braket-default-simulator-python@main
pip install --upgrade git+https://github.com/aws/amazon-braket-sdk-python@main
Expand All @@ -38,4 +38,6 @@ jobs:
flake8
- name: Run unit tests
run: |
pytest test/unit_tests
tox -e unit-tests
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v1
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ PennyLane Braket plugin
.. image:: https://img.shields.io/github/workflow/status/aws/amazon-braket-pennylane-plugin-python/Python%20package/main?logo=github
:alt: Build Status
:target: https://github.com/aws/amazon-braket-pennylane-plugin-python/actions?query=workflow%3A%22Python+package%22
.. image:: https://codecov.io/gh/aws/amazon-braket-pennylane-plugin-python/branch/main/graph/badge.svg?token=VPPM8BJKW4
:alt: codecov
:target: https://codecov.io/gh/aws/amazon-braket-pennylane-plugin-python
.. image:: https://img.shields.io/readthedocs/amazon-braket-pennylane-plugin-python.svg?logo=read-the-docs
:alt: Documentation Status
:target: https://amazon-braket-pennylane-plugin-python.readthedocs.io/en/latest/?badge=latest
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ commands =
coverage combine
coverage report
coverage html
coverage xml
extras = test

[testenv:integ-tests]
Expand Down

0 comments on commit d69a013

Please sign in to comment.