Skip to content

v2.5.1

v2.5.1 #396

Workflow file for this run

name: Code coverage
on: [pull_request]
jobs:
run:
# Don't run on PRs from forks
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install dependencies
run: pip install tox
- name: Generate code coverage
run: tox -e coverage
- name: Post to GitHub
uses: 5monkeys/cobertura-action@master
with:
path: coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 75
skip_covered: false