Skip to content

Enable automated code coverage reports via coveralls.io#144

Merged
daka1510 merged 3 commits into
Qiskit:mainfrom
daka1510:coveralls
Feb 15, 2022
Merged

Enable automated code coverage reports via coveralls.io#144
daka1510 merged 3 commits into
Qiskit:mainfrom
daka1510:coveralls

Conversation

@daka1510
Copy link
Copy Markdown
Contributor

@daka1510 daka1510 commented Feb 9, 2022

Summary

Enable Coveralls integration. See below links for details.

Inspired by other open source Qiskit libraries that already integrate with Coveralls (https://coveralls.io/github/Qiskit)

Details and comments

Partially solves #22. We should discuss adding a code coverage badge to the README once this PR is integrated to fully solve it.

Comment thread requirements-dev.txt
Comment thread .github/workflows/ci.yml
path: htmlcov
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: unit-tests_python${{ matrix.python-version }}-${{ matrix.os }}
parallel: true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that our coverage differs based on environment, test type and potentially other factors I like the ability to report coverage metrics for all jobs in a single run.

Shows up in Coveralls like below
image

@daka1510 daka1510 marked this pull request as ready for review February 9, 2022 14:42
@daka1510 daka1510 requested review from kdk, kt474 and rathishcholarajan and removed request for kdk February 9, 2022 15:10
Copy link
Copy Markdown
Member

@rathishcholarajan rathishcholarajan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Left a minor suggestion, can be merged after addressing that...

Comment thread .github/workflows/ci.yml
@daka1510 daka1510 merged commit 408b222 into Qiskit:main Feb 15, 2022
@daka1510 daka1510 deleted the coveralls branch February 15, 2022 12:02
blakejohnson pushed a commit to blakejohnson/qiskit-ibm-runtime that referenced this pull request May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants