Skip to content

Commit 8df3bb8

Browse files
committed
create mutation score badge
1 parent cae3082 commit 8df3bb8

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,5 +622,18 @@ jobs:
622622
- name: Report executed
623623
run: |
624624
cr-report session.sqlite | tail -n 3
625-
- name: Check mutation level
625+
- name: Check survival estimate
626626
run: cr-rate --estimate --fail-over 32 --confidence 99.9 session.sqlite
627+
- name: Get mutation score
628+
run: echo "MUT_SCORE=$(python -c 'print(100-$(cr-rate session.sqlite))')" >> $GITHUB_ENV
629+
- name: Create mutation score badge
630+
uses: schneegans/[email protected]
631+
with:
632+
auth: ${{ secrets.GIST_SECRET }}
633+
gistID: 9b6ca1f3410207fbeca785a178781651
634+
filename: python-ecdsa-mutation-score.json
635+
label: mutation score
636+
message: ${{ env.MUT_SCORE }}%
637+
valColorRange: ${{ env.MUT_SCORE }}
638+
maxColorRange: 100
639+
minColorRange: 0

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Documentation Status](https://readthedocs.org/projects/ecdsa/badge/?version=latest)](https://ecdsa.readthedocs.io/en/latest/?badge=latest)
55
[![Coverage Status](https://coveralls.io/repos/github/tlsfuzzer/python-ecdsa/badge.svg?branch=master)](https://coveralls.io/github/tlsfuzzer/python-ecdsa?branch=master)
66
![condition coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomato42/9b6ca1f3410207fbeca785a178781651/raw/python-ecdsa-condition-coverage.json)
7+
![mutation score](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/tomato42/9b6ca1f3410207fbeca785a178781651/raw/python-ecdsa-mutation-score.json)
78
[![CodeQL](https://github.com/tlsfuzzer/python-ecdsa/actions/workflows/codeql.yml/badge.svg)](https://github.com/tlsfuzzer/python-ecdsa/actions/workflows/codeql.yml)
89
[![Latest Version](https://img.shields.io/pypi/v/ecdsa.svg?style=flat)](https://pypi.python.org/pypi/ecdsa/)
910
![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?style=flat)

0 commit comments

Comments
 (0)