Skip to content

Commit

Permalink
Add coverage badge to README
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Apr 4, 2024
1 parent 9826735 commit cdf3401
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- name: Run unit tests
run: test/run_tests.bash
- name: Pytest coverage comment
id: coverageComment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./test/results/pytest-coverage.txt
Expand All @@ -42,6 +43,16 @@ jobs:
coverage-path-prefix: src/pyroboplan/
# This will break on PRs from forks
if: ${{ !github.event.pull_request.head.repo.fork }}
- name: Create coverage badge
uses: schneegans/[email protected]
with:
auth: ${{ secrets.COVERAGE_GIST_SECRET }}
gistID: e5e091166a18c68b26338793917d3bab
filename: pyroboplan-test-coverage.json
label: Coverage Report
message: ${{ steps.coverageComment.outputs.coverage }}
color: ${{ steps.coverageComment.outputs.color }}
namedLogo: python
- name: Upload test results
uses: actions/upload-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![PyRoboPlan Tests](https://github.com/sea-bass/pyroboplan/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/sea-bass/pyroboplan/actions/workflows/tests.yml)
[![Documentation Status](https://readthedocs.org/projects/pyroboplan/badge/?version=latest)](https://pyrobosim.readthedocs.io/en/latest/?badge=latest)
![Coverage Status](https://img.shields.io/endpoint?url=https://gist.github.com/sea-bass/e5e091166a18c68b26338793917d3bab#file-pyroboplan-test-coverage-json)]

Educational Python library for manipulator motion planning.

Expand Down

0 comments on commit cdf3401

Please sign in to comment.