Skip to content

added coverage badge to readme #21

added coverage badge to readme

added coverage badge to readme #21

Workflow file for this run

name: cov
on:
push
jobs:
cov_job:
runs-on: ubuntu-latest
name: checking coverage
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v3
- name: set up python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: 3
- name: install whatever
run: pip install .
- name: install pytest
run: pip install pytest
- name: launch test
run: python3 -m pytest
- name: launch coverage
run:
coverage run -m pytest
- name: cov_comment
id: coverage_comment
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ github.token }}
- name: Store Pull Request comment to be posted
uses: actions/upload-artifact@v3
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
with:
# If you use a different name, update COMMENT_ARTIFACT_NAME accordingly
name: python-coverage-comment-action
# If you use a different name, update COMMENT_FILENAME accordingly
path: python-coverage-comment-action.txt